Weird charset problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Weird charset problem

Post by AGISB »

I try to display the Euro sign in html output. I got following setting in the html

Code: Select all

<meta http-equiv=&quote;Content-Type&quote; CONTENT=&quote;text/html; charset=ISO-8859-15&quote;>
According to the PHP and other manuals this should contain the euro sign but it just displays ?. When I use ISO-8859-1 it displays the Eurosign although it actually should not but the Html Validator spits out a warning.

Any idea's?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

What is the U+nnnn value of the Euro sign that's throwing an error? In ISO Latin 9 it is U+20AC. BTW, try encoding in unicode.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

why not use the &euro; entity mark?
Post Reply