Created
February 26, 2013 12:34
-
-
Save the-teacher/5038123 to your computer and use it in GitHub Desktop.
some encoding magic for windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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