[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: utf-8

.oO(Jasmo Hiltula)

>Here is interesting point: is php5 already fully compatible with utf8 so 
>you can really code it using utf8? Does interpreter completely 
>understand utf8 ?

The interpreter has nothing to with that. UTF-8 code compiles and
executes perfectly fine. For PHP a string is just a string, and all the
syntactically important characters and operators are ASCII chars, which
is compatible with UTF-8 encoding.

PHP 5 just doesn't have native UTF-8 support yet, which means that all
string functions work on bytes, not on characters. This is one thing you
have to keep in mind. But usually these issues can be solved by using
the Multibyte extension.

The coming PHP 6 will (hopefully) have full native UTF-8 support.

Micha