'talend soap using non-UTF8 character set

I need to access a SOAP WS which is in "ISO-8559-1" when I try to integrate it in my Talend Job I get UTF-8 related errors, which seems logic at first, but I do not find any possibility to change the caracter set to "ISO-8559-1" how can I do this?


ERROR:  'Ungültiges Byte 2 von 3-Byte-UTF-8-Sequenz.'
Jan 28, 2022 10:48:01 AM com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
SCHWERWIEGEND: SAAJ0511: Unable to create envelope from given source
Exception in component tSOAP_1 (importDSK)
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source: 
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:148)
    at 

....

CAUSE:

javax.xml.transform.TransformerException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Ungültiges Byte 2 von 3-Byte-UTF-8-Sequenz.
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)

... at snct.importdsk_0_1.importDSK.runJobInTOS(importDSK.java:1124) at snct.importdsk_0_1.importDSK.main(importDSK.java:973)

CAUSE:

javax.xml.transform.TransformerException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Ungültiges Byte 2 von 3-Byte-UTF-8-Sequenz.

...

com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:102) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:153) at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:158) at snct.importdsk_0_1.importDSK.tSOAP_1Process(importDSK.java:657) at snct.importdsk_0_1.importDSK.runJobInTOS(importDSK.java:1124) at snct.importdsk_0_1.importDSK.main(importDSK.java:973)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source