Hi Inma,
xmlutf8.getBytes() doesn't return what you think. Both
ByteArrayOutputStream.toString() [1] and String.getBytes() [2] use the
default encoding (which is probably ISO-8859-1 on your system) for
converting between bytes -> chars and chars -> bytes. You can fix this by
specifying the enc
Hi Inma,
The last line of your first block you have:
return baos.toString();
Note that when you do “toString()” on the byte array it will return a string in
Java internal form, not UTF8. I’m guessing that in your next block of code,
xmlutf8 is the result of the first block. This means that whe