geektron has asked for the wisdom of the Perl Monks concerning the following question:
Foreign language characters... had some helpful ideas, but i *think* the strings in which i need to tr// has accented capitals, and i can't get tr// to work.
here's the beginning of the code:
## $fixedName is fetched from DB and copied to new var my $fixedName = "MATíAS LóPEZ"; $fixedName =~ tr/íÍ/II/; print "FIXED: $fixedName \n";
problem is ... tr// doesn't catch anything. i get:
FIXED: MATíAS LóPEZ
i've tried to 'downgrade' the characterset and gotten lots of "?" characters. I've tried Unicode::String and that didn't do anything. i tried Encode.pm and gotten lots of binary-looking cahracters ...
any advice or pointers?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ISO-8859-1 characters to ASCII
by ysth (Canon) on Feb 25, 2004 at 16:44 UTC | |
by geektron (Curate) on Feb 25, 2004 at 16:57 UTC | |
|
Re: ISO-8859-1 characters to ASCII
by Tomte (Priest) on Feb 25, 2004 at 16:46 UTC | |
|
Re: ISO-8859-1 characters to ASCII
by ambrus (Abbot) on Feb 25, 2004 at 17:00 UTC |