Re: Character Encoding problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/21/05 8:32 AM, "Regine Velasquez" <myprogram@xxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux