edgreenberg has asked for the wisdom of the Perl Monks concerning the following question:
00000750 27 41 63 63 6f 72 64 c3 a9 6f 6e 27 2c 20 27 64 |'Accord.. +on', 'd|
When I run this through Text::Unidecode, instead of getting accorde-with-acute-accent I get A(c).
I have:
use utf8; use Text::Unidecode;
and later (roughly): $var = unidecode($var)
Debugging shows that the variable is changed by the unidecode function:
I would expect a lower case 'e' as I had before this program was ported from 5.6.1 to 5.8.8 (and from freebsd to linux)Before: Montréal Centre-ville After: MontrA(c)al Centre-ville
Any idea what I can do to correct this? The output is filenames that generate URLs, and the customer wants to match what she had before so as not to change the URLs in Google.
Thanks,
Ed Greenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unidecode fails printing french accents
by choroba (Cardinal) on Jun 16, 2015 at 16:26 UTC | |
|
Re: Unidecode fails printing french accents (octets)
by Anonymous Monk on Jun 16, 2015 at 23:04 UTC | |
|
Re: Unidecode fails printing french accents
by andal (Hermit) on Jun 17, 2015 at 07:09 UTC |