Page 1 of 1

encoding

Posted: Thu Jul 01, 2004 8:22 pm
by btfans
Hi,

I need to convert a text file encoded big5 to utf-8...
Can anyone show me how to do in php?

Any php function to do ?
What is the requirement of iconv and mb_* ?

My php is only 4.2.2 from redhat9.

Thanks.

Posted: Thu Jul 01, 2004 11:14 pm
by ol4pr0
Not sure ( completely that is. ) that PHP is the right language for doing something like that, however u might find some reference here

http://au2.php.net/manual/en/function.utf8-encode.php

Posted: Fri Jul 02, 2004 11:28 am
by btfans
[SOLVED]

BY:

echo iconv("BIG5", 'UTF-8", $in-string);