From: Wes Gamble Date: 2006-05-25T05:52:08+09:00 Subject: Re: How does one transform UTF-8 encoded characters to ASCII Wes Gamble wrote: > I'm a little embarrassed about asking this, but here goes... > > I am using HTMLEntities.decode_entities on a string of HTML. > > I don't understand how to make my text, which now contains UTF-8 > characters, display correctly in say, Notepad. All of the entities are > preceded by the character A-circumflex. My guess is that Notepad > doesn't know how to handle UTF-8, for example. > > Do I need to unpack the string with 'U' and then repack the result with > 'A'? > > Thanks, > Wes OK I have found the iconv library, however, I am still having trouble. What is the default text encoding for Ruby? I assume it's gotten from the OS, right? So if I'm on Windows XP in the US, it's probably ISO-8859-1? Any help is appreciated. Wes -- Posted via http://www.ruby-forum.com/.