Files
wagic/projects/mtg/bin/Res/lang/spot.rb

12 lines
238 B
Ruby
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/ruby -w
require 'iconv'
c = Iconv.new('UTF-8', 'WINDOWS-1252')
line = 0
while l = gets
line += 1
if l.match(/[\x80-\xFF]/)
puts line.to_s + " : " + c.iconv(l.gsub(/([\x80-\xFF])/, '\\1'))
end
end