[SOLVED] encoding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
btfans
Forum Newbie
Posts: 22
Joined: Thu Jun 10, 2004 10:58 am

encoding

Post 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.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post 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
btfans
Forum Newbie
Posts: 22
Joined: Thu Jun 10, 2004 10:58 am

Post by btfans »

[SOLVED]

BY:

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