• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

Character encoding problem

I have a problem, hope somebody can help. I have a client with a site that contains French characters (accents, etc.) which work fine when I set my meta charset to "utf-8". They also, however, use the meter squared (m²) character, which DOES NOT display with this charset. If I change the charset to "ISO-8859-1" the m2 displays perfectly, but then all the French characters don't display right.

What on earth can I do to get all these characters to display?
1 Solution
Richard QuadlingSenior Software DeveloperCommented:
Can you give a reference to the page or some data?
DarkHillAuthor Commented:
http://www.guide2poitoucharentes.com/index.asp - in the latest news list and the events module the accents are fine but the m2 in the Accommodation block doesn't display right. This is when the page uses UTF-8. If I change the encoding, the m2 displays but the French characters do not.
You might want to try the iconv function if it works for you.

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

DarkHillAuthor Commented:
The site is ASP although I mentioned PHP too as I'm sure this problem will exist there too.

What else can I do - if only I could merge the charsets!
Why don't just use

DarkHillAuthor Commented:
Because members add their own entries, the £ is another problem character.
DarkHillAuthor Commented:
I actually figured it out myself finally, but jericotolentino posted a very useful link for PHP systems. Turns out I was replacing a certain character that caused the problem. Thanks for everybody's input.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now