[TxMt] Re: Encoding output window to ISO-8859-1?

jdmuys at free.fr jdmuys at free.fr
Fri Feb 13 16:15:43 UTC 2009


----- Hans-Jörg Bibiko <bibiko at eva.mpg.de> a écrit :
> 
> 
> #!/usr/bin/env ruby -wKU
> 
> require "iconv"
> 
> file = File.open("/Users/bibiko/Desktop/test.txt", "r")
> file.each { |line| print Iconv.iconv("UTF-8","LATIN1",line) }
> file.close
> 
> which outputs the test.txt content correctly. You can then define a  
> function printLATIN1() or similar.
> 

It's not ideal, but it's a useable workaround. Thank you very much.

JD



More information about the textmate mailing list