|
Posted by Benjamin Wilger on 10/07/05 10:01
Hi!
I hope I got your problem right. In the PHP Manual contributed notes
theres a very good function to validate (and proof) UTF-8 encoded data.
http://de3.php.net/manual/en/function.utf8-encode.php#48160
It works perfectly for me. This function returns false when the given
text has chars in it, which are not part of the UTF-8 standard i.e.
ISO/ANSI above 128. If your Webpage has the correct meta-tag (charset
UTF-8) or the corresponding header (look in the php.ini, there's a
default setting!), the browser should then send you UTF-8 encoded data.
By the way have a look at the mb_string extension. It delivers a set of
string functions that replace the existing php functions which don't
support multi-byte char strings.
Hope that helped you a bit.
Greetings,
Benjamin Wilger
Navigation:
[Reply to this message]
|