Skip to content

Instantly share code, notes, and snippets.

@calavera
Created August 16, 2010 16:42
Show Gist options
  • Save calavera/527245 to your computer and use it in GitHub Desktop.
Save calavera/527245 to your computer and use it in GitHub Desktop.
StringBuffer s = new StringBuffer();
s.append((char) unicode);
System.err.println(s.toString()); // here it prints 靥
ByteList b = new ByteList(s.toString().getBytes("utf-8"));
System.err.println(b.toString()); // here it prints é¥
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment