Message81828
quote() works in Python3 with any bytes string (not only ASCII) and
any unicode string:
Python 3.1a0 (py3k:69105M, Feb 3 2009, 15:04:35)
>>> from urllib.parse import quote
>>> quote('é')
'%C3%A9'
>>> quote('\xe9')
'%C3%A9'
>>> quote('\xe9'.encode('utf-8'))
'%C3%A9'
>>> quote('\xe9'.encode('latin-1'))
'%E9' |
|
Date |
User |
Action |
Args |
2009-02-12 22:14:04 | vstinner | set | recipients:
+ vstinner, collinwinter, varmaa, nagle, ajaksu2, vak |
2009-02-12 22:14:03 | vstinner | set | messageid: <1234476843.96.0.936279088185.issue1712522@psf.upfronthosting.co.za> |
2009-02-12 22:14:02 | vstinner | link | issue1712522 messages |
2009-02-12 22:14:02 | vstinner | create | |
|