I've found out that the database I'm using contains in some fields some special characters, like ASCII control characters (26 SUB etc.). They are causing problems because they made XMLs invalid etc. I'd like to filter them out with the most transparent way as possible.
Is it possible to activate some filter in JPA, that will process the string values read from database and will apply to every text field, without doing the filtering manually?
Applying filters like those mentioned in removing invalid XML characters from a string in java works, when I manually change the string field in entity.