From: femtowin femtowin Date: 2005-07-21T11:16:01+09:00 Subject: Re: how to do charset conversion in ruby? I've found out the problem, http://wiki.rubyonrails.com/rails/show/iconv says how to cope with it, thanks,Katarina On 7/21/05, femtowin femtowin wrote: > require 'iconv' > conv = Iconv.new("UTF16","ISO88591") > result = conv.iconv("hello") > > but it reports: No such file to load -- iconv, > I'm under windows. > and the manual says Iconv is a wrapper class for the UNIX 95 iconv() > function family,so is that iconv must be used under UNIX/LINUX? > or should I install something? > > On 7/20/05, Katarina WONG wrote: > > On Wed, 20 Jul 2005 08:31:39 +0200, femtowin femtowin > > wrote: > > > > > hello all, > > > say I've get a file encoding in GB2312, > > > how do I convert it to UTF-8? > > > > > > > How about a good old RTFM ? ;) > > > > http://www.ruby-doc.org/ is your friend. > > > > Check out this page for the iconv wrapper > > > > http://www.ruby-doc.org/stdlib/libdoc/iconv/rdoc/classes/Iconv.html > > > > > > > > -- > > Katarina > > > > > >