You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>get("http://nominatim.openstreetmap.org/search?format=json&q=México D.F.")
assertion failed: c <0x80while loading In[63], in expression starting on line 1in is_url_char at /Users/jiahao/.julia/v0.3/URIParser/src/parser.jl:1in parse_url at /Users/jiahao/.julia/v0.3/URIParser/src/parser.jl:267in get at /Users/jiahao/.julia/v0.3/Requests/src/Requests.jl:575
julia> response =get("http://nominatim.openstreetmap.org/search",
query={"format"=>json, "q"=>"México D.F."})
Response(400 Bad Request, 17 Headers, 393 Bytes in Body)
julia> response.data
"<html><body><h1>Bad Request</h1><p>Nominatim has encountered an error with your request.</p><p><b>Details:</b> Illegal query string (not an UTF-8 string): M跩co D.F.</p><p>If you feel this error is incorrect feel free to report the bug in the <a href=\"http://trac.openstreetmap.org\">OSM bug database</a>. Please include the error message above and the URL you used.</p>\n</body></html>\n\r\n0\r\n\r\n"
The Requests.get() method does actually attempt to escape non-ASCII characters with percent encoding. In fact, by the time Requests.open_stream() gets called, the HTTP stream data looks like this:
It looks like somewhere in the bowels of TcpSocket the escaped sequence %e9xi is somehow being mangled into '跩' == 0x8de9 (which most ironically, means "to swagger").
Possibly related to #9?
The text was updated successfully, but these errors were encountered: