From: Wes Gamble Date: 2006-05-25T12:13:56+09:00 Subject: Re: How does one transform UTF-8 encoded characters to ASCII Logan Capaldo wrote: > On May 24, 2006, at 9:36 PM, Sam Roberts wrote: > >> >> >> > > require 'iconv' > from = 'UTF-8' > to = 'CP1252' > iconvertor = Iconv.new(from, to) > s = "String in utf8" > string_in_windows1252 = iconvertor.iconv(s) > iconvertor.close Is CP1252 the correct name of the character encoding? I was using windows-1252? Where is a list of the canonical names of character encodings? Also, what is a BOM? Thanks, Wes -- Posted via http://www.ruby-forum.com/.