The refactoring worked well. The bug is gone.
Code pages
Conversion of segment IMD
Tested. The bug is fixed.
Tested. The bug is fixed.
Bug in parsing composites
I have implemented the conversion in every branch of the if block. rawEdifact = new String(rawEdifact.getBytes("ISO-8859-1"), "ISO-8859-1"); rawEdifact = new String(rawEdifact.getBytes("ASCII"), "ASCII");
Using different Codepages on the same Input