From: Gregory Brown Date: 2009-07-07T23:43:48+09:00 Subject: Re: Ruby 1.8 - character encoding On Tue, Jul 7, 2009 at 10:42 AM, Gregory Brown wrote: > On Tue, Jul 7, 2009 at 10:21 AM, Thomas Thomassen wrote: >> Gregory Brown wrote: >>> http://blog.grayproductions.net/categories/character_encodings >> >> I have seen that series. I still can't work out how Ruby determines what >> UTF-8 character to map to the 128-255 spaces. > > I  missed why you wouldn't just set $KCODE="U" and stick w. UTF-8? > > Anyway, I *think* chars.pack("C*") is going to give you ISO-8859-1 but > someone else will need to verify for you. Also, since you know the original encoding, you can use IConv to explicitly convert to whatever you want. -greg