Solved

Character encoding problem

Posted on 2008-10-07
7
385 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
7 Comments
 
LVL 40

Expert Comment

by:RQuadling
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
Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now