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

Chloe
- 25,162
- 40
- 190
- 357

Jesper Grann Laursen
- 2,357
- 1
- 20
- 21