I have created an apex class which created an xml using:


but I get the following error:

Underlying stream encoding 'UTF-8' and input parameter for writeStartDocument() method 'windows-1255' do not match.

How can I create an XML with another encoding than UTF-8?


It is currently not fixed in SF.


You can vote for the idea, but in the current moment you have nothing else to do, than leave UTF-8 encoding.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.