A
Axel Etzold
Dear all,
I'd like to transliterate some accented text, just removing the accents.
The encoding should be iso-8859-1 (source and destination).
I am on Ubuntu 8.04, and I get the following:
require "rubygems"
require "iconv"
s="caffè"
p Iconv.iconv("ascii//translit","iso-8859-1",s)[0] => "caff?"
Is there any way to get "caffe" ?
I read in some earlier post to a Ruby list that there are different language locales to Iconv,
but I couldn't find how to specify any in Ruby Iconv :
http://groups.google.de/group/comp.lang.ruby/browse_thread/thread/40d823813170aa9a
Thank you very much for your help!
Best regards,
Axel
I'd like to transliterate some accented text, just removing the accents.
The encoding should be iso-8859-1 (source and destination).
I am on Ubuntu 8.04, and I get the following:
require "rubygems"
require "iconv"
s="caffè"
p Iconv.iconv("ascii//translit","iso-8859-1",s)[0] => "caff?"
Is there any way to get "caffe" ?
I read in some earlier post to a Ruby list that there are different language locales to Iconv,
but I couldn't find how to specify any in Ruby Iconv :
http://groups.google.de/group/comp.lang.ruby/browse_thread/thread/40d823813170aa9a
Thank you very much for your help!
Best regards,
Axel