I have following code:
String convertedBuilder = builder.toUriString();
convertedBuilder = convertedBuilder.replace(",", "\\,");
URI uri = UriComponentsBuilder.fromUriString(convertedBuilder)
.build().toUri();
The idea is to replace a single comma ','
by a '\,'
(slash and comma).
Originated URL should be something like
'server-url'?name=te%5C%2Cst
for parameter value 'te\,st
.
However Spring generates this one:
'server-url'?name=te%5C%252Cst
What am I doing wrong?
Regards,