I am using UriComponentsBuilder and sending a url on mail which contains "?" but instead of "?" it get converted to the unicode value of "?" i.e.,"%3F", kindly suggest how can I send this URL so that I would get the exact "?" that I want.
Here is the code that I am using.
UriComponentsBuilder urlBuilder = ServletUriComponentsBuilder.fromCurrentContextPath().path("/registrationConfirmation"+"?token="+registrationToken);
String onUserRegistrationCompleteEvent = mailService.onUserRegistrationCompleteEvent(registeredUserOpt.get().getEmail(), urlBuilder.toUriString());