Menu

#334 getTileUrl with accent

latest_beta_version
closed
r_x
None
1
2022-05-06
2020-02-20
nono303
No

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

1 Attachments

Discussion

  • r_x

    r_x - 2020-02-20

    "é" 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

     
  • nono303

    nono303 - 2020-02-20

    Thanks @r_x it sounds great!!

     
  • r_x

    r_x - 2022-05-06
    • status: open --> closed
    • assigned_to: r_x
     

Log in to post a comment.

MongoDB Logo MongoDB