GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
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.
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.