-
Notifications
You must be signed in to change notification settings - Fork 151
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
UnicodeDecodeError #33
Comments
Great find. I'll fix this shortly. Do note, however, that URLs can't contain unicode, as per RFC 1738.
However, it's furl's duty to do 'the right thing' and coerce a unicode input URL to its encoded ascii form. |
This is fixed in furl v0.3.9. >>> f = furl(u'http://www.example.org/?kødpålæg=42')
>>> f.url
'http://www.example.org/?k%C3%B8dp%C3%A5l%C3%A6g=42' Update to v0.3.9 with
Thank you for bringing this issue to my attention @chrj. |
Thank you for the quick response. We are using furl as a tool for both sanitizing as well as manipulating of user supplied URLs, which is why we sometimes deal with unescaped special characters. |
Wonderful to hear. Don't hesitate to let me know if there's anything else I can do for you. |
After upgrading from 0.3.7 to 0.3.8 my tests are failing with
UnicodeDecodeError
on an URL like:I'm running Python 2.7.3 and my sys.stdin.encoding is UTF-8.
The text was updated successfully, but these errors were encountered: