bookieio / Bookie

Python based delicious.com replacement
GNU Affero General Public License v3.0
633 stars 140 forks source link

[issue 551] fixed issue of url containing extended chars #552

Closed AnishShah closed 9 years ago

AnishShah commented 9 years ago

This solves the issue #551. But I'm not able to write testcase for this issue.

When I add something like this ->

test_url = u'http://www.amazon.de/Molwanien-schadhaften-Lächelns-Santo-Cilauro/dp/3453811380 '

I get -> SyntaxError: Non-ASCII character '\xc3' in the file

I added # -*- coding: utf-8 -*- at the top of the file. But then, it passes the testcase without any changes in the original code.

Please help me in adding the testcase. ?

preddy5 commented 9 years ago

Hai @AnishShah, one reason could be you copy pasted the url and the unicode char are not visible on your text editor, once try by typing the url instead of pasting