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

force convert to utf-8 #20

Merged
merged 1 commit into from
Jun 8, 2014
Merged

Conversation

lichenbo
Copy link
Contributor

@lichenbo lichenbo commented Jun 7, 2014

When I come to handle a xml with Chinese characters in it, I came to this lib. But soon the xml.etree.ElementTree prompt me that there's an error while parsing. Soon I discovered that the Chinese character is encoding with Unicode while the header of xml tells 'UTF-8'. So I changed the last line of dicttoxml.py with .encode('utf-8') added and which avoids the interpreting problem of Chinese character.

avoid the intepreting problem of Chinese character
quandyfactory added a commit that referenced this pull request Jun 8, 2014
@quandyfactory quandyfactory merged commit b79a39f into quandyfactory:master Jun 8, 2014
@quandyfactory
Copy link
Owner

Thank you for providing a quick and easy fix.

quandyfactory added a commit that referenced this pull request Jun 8, 2014
…he fix. This commit updates the README and setup files
quandyfactory added a commit that referenced this pull request Jun 8, 2014
…he fix. This commit updates the README and setup files
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

Successfully merging this pull request may close these issues.

None yet

2 participants