transliteration with Haskell iconv?

Hi all, I'd like transliterate a UTF-8 text to ASCII. With iconv(1), I would do iconv -f UTF-8 -t ASCII//TRANSLIT foo I've tried using Duncan's iconv library, but it seems to give me more question marks than iconv(1) would, which seems odd if it's the same library underneath. In other words, transliterating Aonach Mòr is a mountain in the Highlands of Scotland. On va boire un petit café si ça te dit. gives me with iconv(1) Aonach Mor is a mountain in the Highlands of Scotland. On va boire un petit cafe si ca te dit. but with my attempts at using Codec.Text.IConv and examples/hiconv -f utf-8 -t ascii --transliterate, I get Aonach M?r is a mountain in the Highlands of Scotland. On va boire un petit caf? si ?a te dit. Anybody run into this and know what to do? Thanks! PS. I'm on Ubuntu 9.04 if it makes any difference... -- Eric Kow http://www.nltg.brighton.ac.uk/home/Eric.Kow PGP Key ID: 08AC04F9

On Fri, Apr 09, 2010 at 17:40:37 +0100, Eric Kow wrote:
I'd like transliterate a UTF-8 text to ASCII.
but with my attempts at using Codec.Text.IConv and examples/hiconv -f utf-8 -t ascii --transliterate, I get
Aonach M?r is a mountain in the Highlands of Scotland. On va boire un petit caf? si ?a te dit.
I had completely neglected to Google before writing my email (sigh) It seems like this Gnome hacker was suffering the same thing I was http://taschenorakel.de/mathias/2007/11/06/iconv-transliterations/ Hmm... -- Eric Kow http://www.nltg.brighton.ac.uk/home/Eric.Kow PGP Key ID: 08AC04F9
participants (1)
-
Eric Kow