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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!