Unicode php questions
-
Hello all,
i got an advise that on this forum i might get some answersSo here are my qyestions
How can I know that a given .txt file is saved as UNICODE? Is there anyway I could test it?
How can I convert a given .txt file into UNICODE with PHP? or simplerHow can I save a text file with php as “UNICODE” encoding?
I am using PHP
I am reading form PHPMYADMIN database with MYSQL
Kind regards,
Federico
-
UNICODE support in PHP is very weak.
In the planned PHP6 release there will be a strong unicode support, but for now, you have to stick to Multibyte String Functions
You may be interested especially in http://de.php.net/manual/en/function.mb-convert-encoding.php and http://de.php.net/manual/en/function.mb-detect-encoding.php