अजगर में त्रुटियों के बिना यूनिकोड को ASCII में बदलें
मेरा कोड सिर्फ एक वेब पेज को स्क्रैप करता है, फिर इसे यूनिकोड में बदल देता है। html = urllib.urlopen(link).read() html.encode("utf8","ignore") self.response.out.write(html) लेकिन मुझे एक UnicodeDecodeError: Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/__init__.py", line 507, in __call__ handler.get(*groups) File "/Users/greg/clounce/main.py", line 55, in get html.encode("utf8","ignore") UnicodeDecodeError: 'ascii' codec can't decode …