79179381

Date: 2024-11-11 23:19:46
Score: 2
Natty:
Report link

I was migrating to Spring 6 and Java 17, compiling under Java 17. My solution was to create a special CharacterEscapeHandler class and pass it via properties to the marshaller & unmarshaller. The default MinimumEscapeHandler wasn't handling '\t' character translation only '\r\n' was working correctly. It took me a while to track down this handler. My needs were special because my attribute value contained '\t'. This may not be needed if you don't anticipate to handle this character.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Swavek L