[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
New submission from Андрей Р lans...@gmail.com: Issue can be found only in 2.7, in 2.6.6 it works System: Linux strix 3.2.14-1-ARCH x86_64 Python information: Python 2.7.2 (default, Jan 31 2012, 13:19:49) [GCC 4.6.2 20120120 (prerelease)] on linux2 Snippet to reproduce error: # -*-

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Андрей Р lans...@gmail.com added the comment: # -*- encoding: utf-8 -*- import urllib2 request = urllib2.Request('http://google.com', u'Контент'.encode(utf-8), {'Content-Type': 'text/plain; charset=utf-8'}) urllib2.urlopen(request).read() -- ___

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Changes by Андрей Р lans...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Андрей Р lans...@gmail.com added the comment: Sorry. My fault -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list