From: Sean Russell Date: 2002-05-31T23:26:09+09:00 Subject: Re: unicode <=> ascii encoding conversion Tomas Brixi wrote: > is there a library that supports encoding/decoding text > from utf-8/utf-16 to ( iso-8859-*, windows125*, etc) and vice versa? > (something like python codecs lib) Tomas, For ISO-8859-1 to UTF8 conversion, you can do: utf8 = iso88591.unpack('C*').pack('U*') Other encodings are more difficult, depending on the encoding. Ruby will soon have m18n (i18n? I can never tell them apart.) support, but right now you have to do the conversions by hand. -- |.. Go to Heaven for the climate, Hell for the company." -- Mark Twain <|> /|\ /| |