Re: Character Encoding problem

From: Date: Thu, 21 Jul 2005 12:41:43 +0000
Subject: Re: Character Encoding problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219110@lists.php.net to get a copy of this message
On 7/21/05 8:32 AM, "Regine Velasquez" <myprogram@gmail.com> wrote: > Whenever I switch the encoding of a page to > UTF-8, the characters ñ, ë, ì, û, á, etc., > automatically changes to question marks. I've > originally set the encoding of a page to ISO-8859-1 using header () function. > > header ('Content-Type: text/html; charset=ISO-8859-1'); > 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 (#219110) next »