Solved

Character encoding problem

Posted on 2008-10-07
7
392 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 500 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
Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

734 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