Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Unicode nightmare: is there a cheat sheet or solutions diagram?

by Jeffrey Kegler (Friar)
on Jun 10, 2010 at 00:12 UTC ( #843948=note: print w/ replies, xml ) Need Help??


in reply to Unicode nightmare: is there a cheat sheet or solutions diagram?

In many things "hack until it looks OK" is fine. Unicode is one of the exceptions. Get the concepts down first. Juerd did us all a great service with perlunitut and perlunifaq.

Here's a great cheat sheet (also from Juerd): http://juerd.nl/site.plp/perluniadvice.

While striving for Unicode enlightenment, meditate on this mantra: "Decode everything you receive, encode everything you send out. (If it's text data.)" It's not the totality of wisdom, but as its layers of meaning dawn, you will see it contains 90% of what you need to know. And it is a quote from ... what, did you guess Juerd? How'd you know?


Comment on Re: Unicode nightmare: is there a cheat sheet or solutions diagram?
Re^2: Unicode nightmare: is there a cheat sheet or solutions diagram?
by moritz (Cardinal) on Jun 10, 2010 at 07:10 UTC
    While striving for Unicode enlightenment, meditate on this mantra: "Decode everything you receive, encode everything you send out. (If it's text data.)" It's not the totality of wisdom, but as its layers of meaning dawn, you will see it contains 90% of what you need to know.

    I agree, and from the description it sound as if rduke15 is actually doing that. Since Latin-1 is the default encoding, not doing anything with the input should be the as decoding as Latin-1 ... except that in older versions of Perl, it's sometimes not.

    I'm also intrigued by the description of the local having influence on the result. If I understood the documentation correctly, locales shouldn't have an effect unless you explicitly use locale. Is that correct?

    Still I have observed that it does have an effect, though I've never been able to put my finger on what exactly is going on when a non-UTF8 local comes into play.

    Perl 6 - links to (nearly) everything that is Perl 6.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://843948]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-12-27 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls