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

MultiLineStr causes UnicodeDecodeError under Python 2.x #49

Closed
jmafc opened this issue Dec 31, 2012 · 0 comments
Closed

MultiLineStr causes UnicodeDecodeError under Python 2.x #49

jmafc opened this issue Dec 31, 2012 · 0 comments
Labels

Comments

@jmafc
Copy link
Member

jmafc commented Dec 31, 2012

As reported by Josep Martinez:

Given a view with accented characters in its definition text, e.g., with the word 'Jurídico', dbtoyaml causes an error in pyYAML such as the following:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 98: ordinal not in range(128)

The i with acute accent is U+00ED, but it's encoded as 0xc3ad in UTF-8. The problem does not occur under Python 3.x or under Python 2.x but prior to the change f13980d which introduced MultiLineStr.

@jmafc jmafc closed this as completed in 389d5d5 Jan 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant