Unicode support in charts

Issue #529 resolved
Mikhail Nazarov created an issue
 File "/.../openpyxl/charts/writer.py", line 209, in _write_serial
    SubElement(ref, '{%s}f' % CHART_NS).text = str(reference)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-10: ordinal not in range(128)

Changing 'str' to 'unicode' fixed the issue.

Comments (4)

  1. CharlieC

    Please switch to the 2.3-b2 release. Chart code has been completely rewritten and shouldn't have such problems. The older code will not be maintained.

  2. Log in to comment