eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
308 stars 63 forks source link

parsing ods files with non ascii characters in a formula fails #68

Open FlorianLudwig opened 6 years ago

FlorianLudwig commented 6 years ago

Similar to #28 if a formula contains a non ascii symbol (for example ="Nöpe") parsing fails:

  File "odf/attrconverters.py", line 113, in __save_prefix
    return str(arg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 6: ordinal not in range(128)