From: Michal Suchanek Date: 2006-05-26T00:03:07+09:00 Subject: Re: How does one transform UTF-8 encoded characters to ASCII? On 5/24/06, 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. At least on Windows XP the notepad can handle various encodings. Theproblem is convincing it to use the right encoding. There is noobvoius way.One way that might work:Save a text as utf-8 in notepad. Notepad inserts a mark at thebeginning of the text. You can then copy the mark to the beginning ofany of your texts and it would be readable in notepad. But it would nolonger parse as a valid HTML, ruby, or whatever. Or just drop notepad and use a text editor. HTH Michal