A
Andreas Schwarz
Simple Question: how can I convert UTF-8 strings (from REXML) to
iso8859-15?
Thanks
Andreas
iso8859-15?
Thanks
Andreas
Simple Question: how can I convert UTF-8 strings (from REXML) to
iso8859-15?
Mark J. Reed said:You would think that was a simple question, but I don't have a simple
answer. The YAML homepage mentions a Ruby interface to the Iconv
library, but the link it provides back to RAA doesn't find anything.
Was there an Iconv library that disappeared??
-Mark
Mark said:I could write an extension, but what confused me was the reference on
the YAML page. It seemed to imply that this had already been done, and
even had a link that should have taken me to the Ruby module
on RAA, but no such module was there.
why said:Oh, sorry. I need to remove that link. The iconv lib is now included
with 1.8.0. WrItten by Nobu. If you need it for 1.6.8, I found the
link from FreeBSD ports (/usr/ports/converters/ruby-iconv):
http://member.nifty.ne.jp/nokada/archive/iconv-0.5.tar.gz
Mark said:I find the (to, from) argument order counterintuitive, but that's not Nobu's
fault - it's the order of the underlying C function iconv_open.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.