svanoort / pyresttest

Python Rest Testing
Apache License 2.0
1.15k stars 326 forks source link

Support internationalized URIs (unicode URLs) - RFC3986 #123

Open svanoort opened 8 years ago

svanoort commented 8 years ago

It would be very nice to have full RFC3986 support, allowing for unicode URLs.

Unfortunately for us all, there does not appear to be an easy way to do this: Curl doesn't allow for it (you have to do the URI <--> IRI conversion specified in the RFC manually). There is a library for this, but implementing this properly is full of all kinds of ugly, painful gotchas... and hasn't been requested yet.

There is an RFC3986 library for python but goodness knows what changes would be needed to incorporate it.

Tests are in place as of the 1.7.x branches (unicode-tests).

svanoort commented 8 years ago

Doable: http://stackoverflow.com/questions/4389572/how-to-fetch-a-non-ascii-url-with-python-urlopen