UnicodeDictWriter - write unicode strings out to Excel compatible CSV files using Python. Stuart Langridge and I spent quite a while this morning battling with Excel. The magic combination for storing unicode text in a CSV file such that Excel correctly reads it is UTF-16, a byte order mark and tab delimiters rather than commas.
Thanks for posting this; Excel CSVs are my nemesis.
Sometimes ago I explained how to do it in PHP:
Then you just output the
$xlswith the right headers. You need the multibyte extension of PHP, UTF-8 is the original encoding and excel needs UTF-16.Loïc d'Anterroches - 20th August 2008 19:46 - #