[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PHPwestoz] Stràngê chàràctëres §§§
On Thu, 2005-02-17 at 13:01 +0800, Samuel Cochran wrote:
> Adam Ashley wrote:
>
> >Nicolas Connault wrote:
> >
> >
> >>I'm working on an I18n solution for my auction project, French-English.
> >>However, French is full of funny chÃrÃctÃrs which get into the database
> >>fine, but get output as basic characters when retrieved by PHP . . .
> >>(like ch?r?ct?rs).
> >>
> ><snip>
> >
> >PHP itself is fully unicode compatible.
> >
> Actually, it's not. PHP is extremely ugly when it comes to unicode. This
> is stated in the manual when looking up Strings:
>
> A *string* <http://au2.php.net/manual/en/language.types.string.php> is
> series of characters. In PHP, a character is the same as a byte, that
> is, there are exactly 256 different characters possible. This also
> implies that PHP has no native support of Unicode. See *utf8_encode()*
> <http://au2.php.net/manual/en/function.utf8-encode.php> and
> *utf8_decode()* <http://au2.php.net/manual/en/function.utf8-decode.php>
> for some Unicode support.
>
> There are utf-8 and unicode help functions, though, as listed above.
> (http://php.net/utf8-encode; http://php.net/utf8-decode)
>
despite that it actually all works fine. i've done lots of multilingual
stuff in PHP making use of unicode with no problems
Adam