in reply to Hash not working correctly with spanish words
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.
--
[ e d @ h a l l e y . c c ]
|
|---|