tags:

views:

3457

answers:

2

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
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