"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

> I'm obviously missing some context here, but "encoding ± to %B1 on any
> platform" is exactly what urlencode does:
>
>    >>> import urllib
>    >>> urllib.urlencode([("key", chr(0xb1))])
>    'key=%B1'

Yeah but you're cheating by using the platform independent chr(0xb1)
instead of a literal '±' in an unspecified encoding. 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to