How do I convert a utf-8 string to a utf-16 string in PHP?
mbstring supports UTF-16, so you can use mb_convert_encoding.
mb_convert_encoding
2.1m questions
2.1m answers
60 comments
57.0k users