A java.lang.String is always in UTF-8 encoding. When creating a string from bytes, one specifies the encoding used to create the bytes, so that they can be properly interpreted and converted to UTF-8 when creating the string object.
For the reverse, you get bytes from a string and specify a particular byte encoding. Such as ISO-8955-2.
Quite likely is that TextPad is unable to support/display that encoding. Thus, most likely your file is okay. It is simply a display issue. But that’s just a guess.
“…& XML marker the data gets messed up”
Can you elaborate on what is meant exactly by “messed up?”
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB