Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Hash not working correctly with spanish wordsby halley (Prior) |
on Sep 26, 2007 at 13:09 UTC ( [id://641142]=note: print w/replies, xml ) | Need Help?? |
Your code has literal strings with non-ASCII characters, and your file that you are reading also has non-ASCII characters. What's the encoding for the source code file? What's the encoding for the text file you're reading? What's the encoding you're asking the system to use when reading that file? Any time you stray from ASCII, in pretty much any programming language, you will have to answer these three questions. --
In Section
Seekers of Perl Wisdom
|
|