?
Solved

Character encoding problem

Posted on 2008-10-07
7
Medium Priority
?
400 Views
Last Modified: 2013-12-25
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?
0
Comment
Question by:DarkHill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 22658439
Can you give a reference to the page or some data?
0
 
LVL 7

Author Comment

by:DarkHill
ID: 22658762
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.
0
 
LVL 5

Accepted Solution

by:
jericotolentino earned 1500 total points
ID: 22658958
You might want to try the iconv function if it works for you.

http://www.php.net/manual/en/function.iconv.php
0
Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

 
LVL 7

Author Comment

by:DarkHill
ID: 22659094
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!
0
 

Expert Comment

by:Prophy
ID: 22659316
Why don't just use

m<sup>2</sup>
0
 
LVL 7

Author Comment

by:DarkHill
ID: 22659496
Because members add their own entries, the £ is another problem character.
0
 
LVL 7

Author Closing Comment

by:DarkHill
ID: 31503783
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.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question