Files
wagic/projects/mtg/bin/Res/lang/spot.rb
jean.chalard 3bb91bdd94 J :
* 30sec tool to spot unsupported characters
2010-02-05 12:48:12 +00:00

227 B

#!/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