The first is in the :EncodeURL section variable parameter. This will now encode all characters that are not in the "unreserved" or URL-safe set of:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.~
All other characters in the measure value will be percent-encoded.
Code: Select all
[MeasureString]
Measure=String
String=I live in München
[MeasureWebParser]
Measure=WebParser
URL=https://somesite.com?search=[&MeasureString:EncodeURL]
DynamicVariables=1
https://somesite.com?search=I%20live%20in%20M%C3%BCnchen
The second is in the URL option of WebParser. This will now automatically and transparently encode the URL with the following rules:
Encoding will only take place on characters after the protocol://host/path/ portion of the URL.
Encoding will take place on any characters that are not either:
Unreserved URL-safe characters:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.~
Reserved URL-delimiter characters:
!*'();:@&=+$,/?%#[]
https://somesite.com?search=I live in München
https://somesite.com would not be encoded.
? and = would not be encoded.
Code: Select all
[MeasureWebParser]
Measure=WebParser
URL=https://somesite.com?search=I live in München
https://somesite.com?search=I%20live%20in%20M%C3%BCnchen