[nycphp-talk] verify unicode text exists
Adam Maccabee Trachtenberg
adam at trachtenberg.com
Tue Dec 16 12:23:50 EST 2003
On Tue, 16 Dec 2003, Marc Antony Vose wrote:
> however, i am now dealing with some korean and bulgarian text, and
> this fails, because those characters are not part of "alnum". at the
> moment, i've replaced it with a check of "strlen($text)>0", but if
> the text was ";@ #^&*" it would pass the test.
>
> so, i'm interested in how people deal with this sort of situation?
PHP does not have native Unicode support. However, you should check
out the mbstring extension:
http://www.php.net/mbstring
-adam
--
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!
More information about the talk
mailing list