Think about Loose Coupling | |
PerlMonks |
print unicode characters from hex formatby sistermaryguacamole (Initiate) |
on Aug 31, 2016 at 20:38 UTC ( [id://1170927]=perlquestion: print w/replies, xml ) | Need Help?? |
sistermaryguacamole has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
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
Back to
Seekers of Perl Wisdom
|
|