Skip to content
New issue

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

Character-escape unicode characters automatically #22

Open
maxcutler opened this issue Apr 18, 2012 · 0 comments
Open

Character-escape unicode characters automatically #22

maxcutler opened this issue Apr 18, 2012 · 0 comments

Comments

@maxcutler
Copy link
Owner

xmlrpclib won't auto-escape characters that are invalid in XML, which can cause operations to fail when strings contain non-ASCII characters.

This library knows enough about the fields to auto-escape/encode those which can contain arbitrary strings (e.g., WordPressPost.title). Can be as simple as text.encode('ascii', 'xmlcharrefreplace') when building struct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant