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

2012-04-12 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-04-12 Thread Андрей Р
Андрей Р added the comment: Sorry. My fault -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2012-04-12 Thread Андрей Р
Changes by Андрей Р : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2012-04-12 Thread Андрей Р
Андрей Р 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() -- ___ Python tracker

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

2012-04-12 Thread Андрей Р
New submission from Андрей Р : 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: # -*- encoding: utf-8 -*-