curl-and-python

How to use pycurl when url contain non-English chars?

From: Pan, Chenji <cpan8_at_illinois.edu>
Date: Thu, 4 Oct 2012 06:43:22 +0000

Hi, everyone, I just start using pycurl. And I meet a problem that when setopt(url, "xxx"), if the url contain Chinese chars, it seems that curl is not able to catch the content successfully? Since it does not receive unicode, I do some process like str(unicode_str.encode('utf-8')), but it still not work. Anyone has any idea?

Best Regards,
Frank
University of Illinois at Urbana, Champaign

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2012-10-04