I have variables containing a unicode character C3 A9. The line looks like this:
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:
Before: Montréal Centre-ville
After: MontrA(c)al Centre-ville
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)
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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.