Convert from Unicode to UTF-8 : UTF8 Byte Hex « Development Class « Java
- Java
- Development Class
- UTF8 Byte Hex
Convert from Unicode to UTF-8
public class Main {
public static void main(String[] argv) throws Exception {
String string = "abc\u5639\u563b";
byte[] utf8 = string.getBytes("UTF-8");
}
}
Related examples in the same category