From: Yukihiro Matsumoto Date: 2009-09-10T22:39:19+09:00 Subject: Re: Ruby1.9 Encoding Hi, In message "Re: Ruby1.9 Encoding" on Thu, 10 Sep 2009 18:20:06 +0900, Juliano ÁØÈ£ writes: |The part of my code which deals with this is as follows: | | def run(txt) | txt = txt.encode("EUC-KR") | kts_file = Tempfile::new('kts_text') | kts_file = open(kts_file.path, "w:EUC-KR") | kts_file << "#{txt}\n" | kts_file.close | cmd = "ktspell < #{kts_file.path}" # 2> /dev/null" | IO::popen(cmd, "r:EUC-KR").read.encode("UTF-8") | end | |I found something about "ignoring" the non-existent codepoints, but it |doesn't work... I'm even thinking that my Ruby installation might have |gotten corrupted somehow... Everytime I think I did it right, I still |get The Exception popping up on the screen... I had some difficulty to see your intention from the code. Could you show us the exception messages you've got? matz.