python-openid icon indicating copy to clipboard operation
python-openid copied to clipboard

encoding issue

Open entone opened this issue 13 years ago • 1 comments

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.

entone avatar Apr 06 '12 16:04 entone

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.

eswald avatar Jan 23 '14 23:01 eswald

This repo is being archived. Closing issue.

timcappalli avatar Jul 24 '23 17:07 timcappalli