Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Created February 26, 2013 12:34
Show Gist options
  • Save the-teacher/5038123 to your computer and use it in GitHub Desktop.
Save the-teacher/5038123 to your computer and use it in GitHub Desktop.
some encoding magic for windows
#encoding:utf-8
gets.chomp.encode("utf-8", "cp866")
Iconv.iconv('utf8', 'cp866', "Привет!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment