Special characters are displayed differently

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
Dutch
Forum Newbie
Posts: 1
Joined: Wed Jun 04, 2003 5:07 am

Special characters are displayed differently

Post by Dutch »

I'm new at this, so endulge my ignorance:
I try to display the ë character, but all I get back is either &235; or ë even when I use ë or ë or ë in the code.
What am I doing wrong?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

can we see a sample code?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Could we see the code you are using for display.

Mac
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

Nice dubble post :)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Then usually the reply was obvious or too short ;)
In this case imho: both :)

Ë ë are defined in ISO Latin-1.
Did you switch to another set?
what happens if you try this?

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html> 
	<head>
		<title>entity test</title>
	</head>
	<body>
		<p>&euml;</p>
	</body>
</html>
Post Reply