Hi,
I have an ugly wmts url with accent in params (mandatory for STYLE)
I've try lot of combination between my bsh file encoding (trying ascii instead of utf-8..) and char encoding for the "é" : https://outils-javascript.aliasdmc.fr/encodage-caracteres-accentues/encode-caractere-00E9-html-css-js-autre.html
all 6 encoding possibilities failing with ascii or utf-8 bsh file encoding?
Does I miss something or is that a bug?
Please find attached my bsh file for reproduce & test and a correct url to check test : https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=LANDCOVER.CLC18_FR&STYLE=CORINE%20Land%20Cover%20-%20France%20m%C3%A9tropolitaine&FORMAT=image/png&TILEMATRIXSET=PM&TILEMATRIX=16&TILEROW=22064&TILECOL=33326.png
"é" is a forbidden character in the path part of an URL. Please encode non-asci characters properly as defined in the standard using URL encoding: https://fr.wikipedia.org/wiki/Percent-encoding
Thanks for your quick feedback!
Unfortunately, the french geoportail server doesn’t respect the rule of unaccented url firstly and secondly, doesn’t understand percent encoded char (as you can test with https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=LANDCOVER.CLC18_FR&STYLE=CORINE%20Land%20Cover%20-%20France%20m%e9tropolitaine&FORMAT=image/png&TILEMATRIXSET=PM&TILEMATRIX=16&TILEROW=22064&TILECOL=33326.png )…
So may I redefine my request not for a bug but for a tips or advice : Is it possible and if yes how can I manage - in bsh or dirtily patch mobac code - to allow forbidden accent in url ?
%e9is the URL encoded version of the ISO-8859-1 characteréLooks like the server expects
%C3%A9which is the UTF-8 version ofé.Thanks @r_x it sounds great!!