From: Atoli Atoli Date: 2010-11-18T22:54:21+09:00 Subject: Re: Ruby 1.9.2 UTF-8 Encoding issues while reading/writing files Thanks for the tip. For now, making ruby "think" the encoding is valid seems to work (it doesn't break regular expressions at least). So I just encode("UTF-8", "UTF-8", invalid: :replace, undef: :replace, replace: "_") each time I read my files. -- Posted via http://www.ruby-forum.com/.