[Logo]
Forums Register Login
Conversion from UTF16 to UTF8
Hi

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

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



All times above are in ranch (not your local) time.
The current ranch time is
Nov 23, 2017 06:17:46.