Skip to content

Instantly share code, notes, and snippets.

@neelsmith
Created January 6, 2014 19:05
Show Gist options
  • Save neelsmith/8287907 to your computer and use it in GitHub Desktop.
Save neelsmith/8287907 to your computer and use it in GitHub Desktop.
Wrap System.out in a UTF-8 OutputStreamWriter.
OutputStreamWriter osw = new OutputStreamWriter(System.out, "UTF-8")
osw.write "μῆνιν ἄειδε\n"
osw.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment