Use string in URLs

Leif K-Brooks eurleif at ecritters.biz
Thu Apr 7 16:52:48 EDT 2005


Markus Franz wrote:
> I want to use the string "rüffer" in a get-request, so I tried to encode 
> it.
> 
> My problem: But with urllib.quote I always get "r%FCffer", but I want to 
> get "r%C3%BCffer" (with is correct in my opinion).

urllib.quote(u'rüffer'.encode('utf8'))



More information about the Python-list mailing list