sistermaryguacamole has asked for the wisdom of the Perl Monks concerning the following question:
I have what I thought would be a simple issue. I'm reading a YAML file full of user names, email, phone, etc. Many are French-Canadian, and have accented characters. In the file I'm reading, it looks like:
jean-fran\xe7ois chr\xe9tienI know that \xe7 is "į", and \xe9 is "é", etc., but it prints to the terminal as just \xe7, \xe9.
I've looked up all sorts of stuff: use utf8; use Encode; binmode(STDOUT, ":utf8"), blah blah blah.
I just want to print the stupid messed up characters the way they're supposed to look; for the love of God, please, help me.
(The next step, of course, is to forbid our French-Canadian employees to use ridiculous non-english characters when creating user accounts - but one thing at a time).
Regards & God Bless,
Sister Mary Guacamole
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print unicode characters from hex format
by choroba (Cardinal) on Aug 31, 2016 at 21:01 UTC | |
|
Re: print unicode characters from hex format
by kennethk (Abbot) on Aug 31, 2016 at 22:17 UTC | |
|
Re: print unicode characters from hex format
by RonW (Parson) on Aug 31, 2016 at 23:17 UTC | |
|
Re: print unicode characters from hex format
by Anonymous Monk on Sep 07, 2016 at 14:02 UTC |