Skip to content

Instantly share code, notes, and snippets.

@Khunpisit
Created February 10, 2015 03:07
Show Gist options
  • Save Khunpisit/a11f69bdda2ee319c49c to your computer and use it in GitHub Desktop.
Save Khunpisit/a11f69bdda2ee319c49c to your computer and use it in GitHub Desktop.
public static String getByteUtfString(String text) throws Exception {
return new String(text.getBytes("ISO8859-1"), "UTF-8");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment