How do I convert a utf-8 string to a utf-16 string in PHP?
+7
A:
mbstring supports UTF-16, so you can use mb_convert_encoding
.
Christopher Nadeau
2008-09-30 23:10:03
A:
You could also use iconv
.
It's native in PHP, but require that all your text is one charset. Else it could discard characters.
Lauer
2009-05-23 08:33:28