Open Monstrofil opened 3 months ago
If you have replace the non-ascii characters in the url
with their percent encoded equivalent then I think you will have to escape the percentage characters so they are treated as literal values when string formatting.
https://otgportal.com.ua/arcgis/rest/services/hark_malodanulivska/%%D0%%9C%%D0%%B0%%D0%%BB%%D0%%BE%%D0%%B4%%D0%%B0%%D0%%BD%%D0%%B8%%D0%%BB%%D1%%96%%D0%%B2%%D1%%81%%D1%%8C%%D0%%BA%%D0%%B0_%%D0%%BE%%D1%%80%%D1%%82%%D0%%BE_10000/MapServer/tile/%(z)s/%(y)s/%(x)s
Context
I'm trying to setup maproxy to fetch tiles form completely valid url with unicode part in in, but I'm completely stuck.
I set source as following in mapproxy config:
And I get this error:
It's obviously related to how urllib works with unicode in urls (spoiler: it does not :)).
But when I tried to change the unicode part with quoted, I got another error:
And this is where I stuck completely.
Are there any known workarounds for this issue?
Expected Behavior
Tiles url with unicode in it should work.
Actual Behavior
Tiles url with unicode does not work.
Your Environment