in reply to Re^2: XLSX to CSV with high ASCII characters
in thread XLSX to CSV with high ASCII characters
Hi again, I'm a bit lost now, or maybe you are.
When you say "the UTF-8 CSV is fine" you mean, I assume, that you can open the CSV file in a text editor and the characters display correctly. But as I understood it your goal was to open the CSV file in Excel and that was failing to display the characters correctly. The script I provided does that -- takes input in UTF-8, converts it to Perl internal, works on it, and outputs it in UTF-16 so Excel will display it right.
If you want something else, I've missed it.
Of course, you could always write out an .xls or .xlsx file in UTF-8 instead of CSV in UTF-16, if it's going to be used in Excel anyway, and avoid the encoding issue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XLSX to CSV with high ASCII characters
by apu (Sexton) on Aug 27, 2017 at 23:21 UTC |