in reply to Re: Processing spreadsheet with some cells in ASCII, other cells in UTF-8
in thread Processing spreadsheet with some cells in ASCII, other cells in UTF-8
The problem in our team's Perl script was fixed simply by adding a one-line change at the top of the script:
binmode STDOUT, ':utf8'; #This handles the multiple encoding for language menus in the Perl IO layers.The above one-line change fixed the problem, the Perl script can now process contents of Excel spreadsheet cells, no matter what type of character encoding was used in them.
No additional low-level function calls, to decode or encode, were needed.
This change was taken from one of the replies to my original question. Thanks for your help.
The various web pages found in the replies, which discussed character encoding, were also very helpful.
|
|---|