convert string into unicode java

Java
System.out.println( "\\u" + Integer.toHexString('÷' | 0x10000).substring(1) );
Source

Also in Java: