Java tutorial
import java.io.*; public class Main { public static void main(String[] args) throws UnsupportedEncodingException { byte c = 70; PrintStream ps = new PrintStream(System.out, true, "UTF8"); // write byte c which is character F in ASCII ps.write(c); // flush the stream ps.flush(); } }