Re: Character Encoding problem

From: Date: Fri, 22 Jul 2005 06:04:53 +0000
Subject: Re: Character Encoding problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-219185@lists.php.net to get a copy of this message
Are characters such as àâáâãäåèéêë and others like them considered UTF-8 characters? If it is considered UTF-8 characters, it still manages itself to be displayed correctly under ISO-8859-1. The page contains those type of characters and it is being displayed under ISO-8859-1. However, if I chance the charset to UTF-8, all those characters turns into a diamond with a question mark in it (in Firefox) or probably just question marks in Internet Explorer. How can I fix this? How can I display those type of characters under UTF-8?
Well, if you've set the encoding to ISO-8859-1 and then output utf-8 characters I would expect them not to display properly. Or am I not understanding the problem correctly? From what I see, you can either change the encoding of the page, or use a function like utf8_decode() to transform utf-8 characters into iso-8859-1 (which, of course, is not always possible). Marco


« previous php.general (#219185) next »