encoding issue #38

Open
entone opened this Issue Apr 6, 2012 · 1 comment

Comments

Projects
None yet
2 participants

entone commented Apr 6, 2012

In attempting to use é in a lastname ax attribute, I get an ascii encoding error.

it would appear https://github.com/openid/python-openid/blob/master/openid/message.py#L348 is the problem.

ElementTree.tostring accepts an encoding argument, but defaults to None. This causes an error when returning UTF-8 characters.

eswald commented Jan 23, 2014

That particular error message seems to have been fixed by commit 0dd2e81. Granted, it still pays to take care with the value returned, to ensure that it gets decoded properly downstream, and it would help to have a new official release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment