Created
July 30, 2012 14:22
-
-
Save coffeejunk/3207305 to your computer and use it in GitHub Desktop.
iso2utf8
This file contains hidden or 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
File.open("vorlage_iso.tex", 'w') do |f| | |
File.open("vorlage_utf8.tex", "r:iso-8859-1:utf-8").each_line do |l| | |
f.puts l.force_encoding 'utf-8' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment