Forum Moderators: coopster

Message Too Old, No Replies

shift JIS to UTF 8

php function to convert the data from shift JIS to UTF8

         

sandeep india

10:40 am on May 23, 2009 (gmt 0)

10+ Year Member



HI all,

I've the data in Mysql Database (ver 3.23.58) which is entered from shift JIS browser encoding.

Now I want to convert it from shift JIS to UTF8. The data in the db is something like this ƒ}ƒŠƒIƒ“

I tried mb_convert_encoding($jap_text, "UTF-8", "SJIS")
which is converting characters like this 窶嘛ニ耽ニ辰ニ致

Pls help me.

sandeep india

9:36 am on May 26, 2009 (gmt 0)

10+ Year Member



Hi Guys,

I found the answer

$sjis_text = mb_convert_encoding($sjis_text, "UTF-8", mb_detect_encoding($sjis_text,"JIS,SJIS,eucjp-win"));