Forums Register Login
Conversion from UTF16 to UTF8

We are trying to convert a UTF16 string to UTF8. Is there any Java API that will do the this conversion?

byte[] fooBytes = "foo".getBytes("UTF-8");
String foo = new String(fooBytes, "UTF-8");
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 883 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jun 21, 2018 00:49:28.