in reply to Quick way to convert to ASCII

Text::Unidecode looks like it does exactly that. It's pure Perl, but since it's essentially a giant lookup table for all of Unicode, it's not small (748k).

blokhead

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

    It gets the ligature right and has a great motto :) :

    MOTTO

    The Text::Unidecode motto is:
    It's better than nothing!

    ...in both meanings: 1) seeing the output of unidecode(...) is better than just having all font-unavailable Unicode characters replaced with ``?'''s, or rendered as gibberish; and 2) it's the worst, i.e., there's nothing that Text::Unidecode's algorithm is better than.

    DWIM is Perl's answer to Gödel