in reply to Re: Correct Locale for brazilian portuguese (or French!)
in thread Correct Locale for brazilian portuguese (or French!)

I issued the command you said, and I have all these:
pt_BR pt_BR.iso88591 pt_BR.utf8 pt_PT pt_PT@euro pt_PT.iso88591 pt_PT.iso885915@euro pt_PT.utf8
I am using the pt_PT.iso88591 that it works with a string I type in the cgi script but does not in a string extracted from a .xls file with the Spreadsheet::ParseExcel module. How come??

Replies are listed 'Best First'.
Re^3: Correct Locale for brazilian portuguese (or French!)
by Tanktalus (Canon) on Jun 20, 2005 at 23:48 UTC

    You probably need to encode/decode whatever encoding that XLS is using. Most likely, it's UTF8. So you should probably check the Encode module to decode from utf8 to pt_BR.iso88591.

    Remember - just because you're running in a locale doesn't mean the data you're reading is in that locale. :-)