Re: urllib.urlencode wrongly encoding ± character

Evren Esat Ozkan sleytr at gmail.com
Fri Apr 7 03:33:25 EDT 2006


Ok, I think this code snippet enough to show what i said;

===================================

#!/usr/bin/env python
#  -*- coding: utf-8 -*-
#Change utf-8 to latin-1
#Or move variable decleration to another file than import it

val='00090±NO:±H±H±H±H±'

from urllib import urlencode

data={'key':val}

print urlencode(data)

===================================




More information about the Python-list mailing list