How do I convert a utf-8 string to a utf-16 string in PHP?
2 Answers
You could also use iconv.
It's native in PHP, but require that all your text is one charset. Else it could discard characters.
You could also use iconv.
It's native in PHP, but require that all your text is one charset. Else it could discard characters.