Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Hash not working correctly with spanish words

by halley (Prior)
on Sep 26, 2007 at 13:09 UTC ( [id://641142]=note: print w/replies, xml ) Need Help??


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 ]

  • Comment on Re: Hash not working correctly with spanish words

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found