in reply to Quick way to convert to ASCII

A quick CPAN search revealed Text::StripAccents (pure perl, iso-latin-1 only) and Text::Unaccent

Replies are listed 'Best First'.
Re^2: Quick way to convert to ASCII
by GrandFather (Saint) on Jul 26, 2006 at 03:18 UTC

    I notice Text::StripAccents at least (I didn't find Text::Unaccent using ppm) suffers the æ problem. No great surprise that something written to handle accents doesn't handle ligatures, but somewhat disapointing.


    DWIM is Perl's answer to Gödel

        I just tried it on Vanilla Perl and the problem is that it wants libiconv, which isn't normally available on Windows. You can get it from GnuWin32, though I'm not yet sure what's necessary to make it work with MinGW.

        -xdg

        Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

        Text::Unaccent is an XS module and wont build cleanly according to ActiveState

        Looks like the bribes repository has a ppm of the latest version (1.08) for both perls 5.6 and 5.8. Can't download the source (from anywhere) at the moment to see firsthand what the problem is.

        Cheers,
        Rob