Categories > TinyButStrong general >

Help me convert from UCS2 to UTF8

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: thuc
Date: 2006-04-08
Time: 05:28

Help me convert from UCS2 to UTF8

I know this article is out of tbs_template_engine, but this problem take me a lot of time, and now I being remain to me.
     I like to find a function can convert a UCS2 string to UTF8 String.?
Help me, please.
Thank very much for support.
By: Sheepy
Date: 2006-04-10
Time: 05:44

Re: Help me convert from UCS2 to UTF8

Try the iconv library.

http://hk.php.net/iconv


If it's not available, and if you've got a sufficiently new MySQL, maybe it's possible to use it as a converter using SET NAMES with memory table, at cost of larger overhead.