8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
there is a problem in CT_CoreProperties._set_element_text (line 299)
value = str(value)
which will will fail in a default windows-python2.x installation when supplying unicode strings (e.g.):
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 0: ordinal not in range(128)
This is because there is no default system encoding, so python tries to encode the unicode-string using 7-bit-ASCII, which of course fails.
My solution: Only convert to string, if its necessary. If it's already a string/unicode, don't touch.
if not isinstance(value, basestring): value = str(value)
The text was updated successfully, but these errors were encountered:
Fixed in release v0.8.7 circa Aug 18 2018.
Sorry, something went wrong.
fix: #168 Unicode error on Python 2 core-props
c5bd9c2
37822d3
No branches or pull requests
there is a problem in
CT_CoreProperties._set_element_text (line 299)
which will will fail in a default windows-python2.x installation when supplying unicode strings (e.g.):
This is because there is no default system encoding, so python tries to encode the unicode-string using 7-bit-ASCII, which of course fails.
My solution: Only convert to string, if its necessary. If it's already a string/unicode, don't touch.
The text was updated successfully, but these errors were encountered: