You are here: Re: [PHP] Character Encoding problem « PHP « IT news, forums, messages
Re: [PHP] Character Encoding problem

Posted by Marco Tabini on 07/21/05 15:41

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация