Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Hash not working correctly with spanish words

by mk. (Friar)
on Sep 26, 2007 at 13:14 UTC ( [id://641143]=note: print w/replies, xml ) Need Help??


in reply to Hash not working correctly with spanish words

it works perfectly for me.
have you checked the encoding of the files?! you'll have problems matching characters like 'í' if, for example, your program is utf8 and your txt is iso 8859-1.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*women.pm
  • Comment on Re: Hash not working correctly with spanish words

Replies are listed 'Best First'.
Re^2: Hash not working correctly with spanish words
by qnguyen (Acolyte) on Sep 26, 2007 at 13:43 UTC
    I saved my test2.txt to ANSI encoding and it resolved the problem. I was using UTF-8 prior to the change.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found