wesm/pandas — Issue #738: test_to_csv_unicode fails on python 3.1, 3.2 windows
Author: adamklein
Created: 2012-02-02 18:58:56+00:00
State: open
Labels: Bug, prio-high

======================================================================
ERROR: test_to_csv_unicode (pandas.tests.test_frame.TestDataFrame)
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\python32\lib\site-packages\pandas-0.7.0.dev-py3.2-win-amd64.egg\panda
s\tests\test_frame.py", line 2488, in test_to_csv_unicode
df.to_csv(path, encoding='UTF-8')
File "c:\python32\lib\site-packages\pandas-0.7.0.dev-py3.2-win-amd64.egg\panda
s\core\frame.py", line 914, in to_csv
csvout.writerow(encoded_labels + encoded_cols)
File "c:\python32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u03c3' in position
8: character maps to