Re: multiple charsets status for PHP
| From: | Stanislav Malyshev | Date: | Tue, 31 Oct 2000 09:33:22 +0000 |
| Subject: | Re: multiple charsets status for PHP | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36516@lists.php.net to get a copy of this message | ||
>> could anyone point me in the direction of what the current status of
>> support is within PHP (internally ie. engine, and externally ie. any
>> extensions) for multiple charsets.
PHP is internally mostly charset-invariant, though all language terms are
based on iso-8859-1 (i.e., it'd be probably hard to have chineese variable
names). However, you can store whatever text you like in variables. As for
string function, most of them depend on underlying C library.
Also, PHP has module for interfacing GNU recode, which allows you to
convert characters between most known charsets (given that conversion
exists, of course - you probably cannot convert russian to chineese).
>> also, if anyone has had the chance to develop a site with support for more
>> than one language using PHP, i'd really like to hear about your
>> experiences.
Well, I did, but I didn't have any issues with that - PHP basically took
data from DB or user input, displayed it on screen, and that's it. Who
cares what language or charset, if any, was it?
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106