in reply to One bird, two Unicode names

You could upgrade or downgrade all strings before comparing them. Note that downgrading isn't going to work if they contain characters with code points exceeding 256 - but then such strings don't have LATIN-1 equivalents anyway.

See utf8; (But if you go this way, don't put a use utf8; in your code).

Replies are listed 'Best First'.
Re^2: One bird, two Unicode names
by RCH (Sexton) on Mar 11, 2011 at 15:52 UTC
    I tried utf8::downgrade with FAIL_OK set to 1
    my $success = utf8::downgrade($string, 1); return($string);
    It didn't seem to do anything
    given Güldenstädt’s Redstart
    it returned Güldenstädt’s Redstart

    If I set FAIL_OK to 0, it died, with
    Wide character in subroutine entry

    RichardH