Is it possible to disable encoding process when request XML with RestTemplate?
I need to send my value like this ud=HELLOOOO YEYEYE©À¥¥didiwawa©yayuÀ
ud=HELLOOOO YEYEYE🥺🥺©À¥¥didi🥺wawa©yayuÀ
This is my request
defaultUriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE);
restTemplate.setUriTemplateHandler(defaultUriBuilderFactory);
HttpHeaders headers = new HttpHeaders();
headers.setAccept(Collections.singletonList(MediaType.TEXT_XML));
headers.setContentType(MediaType.TEXT_XML);
HttpEntity<Message> httpEntity = new HttpEntity<>(request, headers);
ResponseEntity<String> responseEntity = restTemplate.postForEntity(uriComponentsBuilder.toUriString(), httpEntity, String.class);
when I check the log, my request look like this on restTemplate process
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ud type="text">HELLOOOO YEYEYE&#x1f97a;&#x1f97a;&#xa9;&#xc0;&#xa5;&#xa5;didi&#x1f97a;wawa&#xa9;yayu&#xc0;</ud>
I want my value parse to xml but without encoding process.