[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Bob Chen added the comment: Is there any possibility that we encapsulate urllib.quote into httplib? Because many developers wouldn't know about this utility function. And as I mentioned above, they could have got an unicode url from anywhere inside python, like an API call, without being

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Changes by Bob Chen 175818...@qq.com: Removed file: http://bugs.python.org/file36492/httplib.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Changes by Bob Chen 175818...@qq.com: Added file: http://bugs.python.org/file37592/httplib.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Bob Chen added the comment: How about this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___ ___ Python-bugs-list mailing list

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-11-23 Thread Bob Chen
Bob Chen added the comment: Someone come and pick up this? It has been a long time... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-11-23 Thread Bob Chen
Changes by Bob Chen 175818...@qq.com: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___ ___ Python-bugs-list

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-09-16 Thread Bob Chen
Bob Chen added the comment: up... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-08-28 Thread Bob Chen
Changes by Bob Chen 175818...@qq.com: -- keywords: +patch Added file: http://bugs.python.org/file36492/httplib.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-08-28 Thread Bob Chen
Bob Chen added the comment: This patch ensures the url not to be unicode, so the 'join' would not cause error when there is utf-8 string behind. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-08-23 Thread Bob Chen
Bob Chen added the comment: I personally suggest httplib convert the url and other elements to be string, at the begging of the class init. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-08-19 Thread Bob Chen
New submission from Bob Chen: Try to run these two script below, and you will understand what I'm talking about. If you specified an url and it happened to be an unicode string(which is quite common in python because python processes string as unicode and you could possibly get it from