XML error : invalid byte 1 of 1-byte utf-8 sequence

onkar-deshpande
onkar-deshpande New Altair Community Member
edited November 2024 in Community Q&A
Hello,

I am trying to convert JSON to XML and later on applying processes as per screenshot. But I am getting XML error while parsing. Can you please let me know what is missing from my end. Attaching screenshot of my process.

Not able to attach image.


Here is the sequence of processes -
Get page ---> JSON to XML ---> Remove Document Parts ---> Write Document ---> Read XML


Regards,
Onkar Deshpande
Tagged:

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Often this is caused by wrong encoding. Have you checked this?

    ~Martin
  • onkar-deshpande
    onkar-deshpande New Altair Community Member
    Hello,

    Thanks for reply. While converting JSON to Xml its not adding any encoding. Can you please tell me how to do that as I am getting response in JSON format.

    Regards,
    Onkar
  • MartinLiebig
    MartinLiebig
    Altair Employee
    Write Document, Read XML and the Main process all have settings for the encoding. Especially if you get web pages you might want to set them to UTF-8.

    Have you checked the written XML for any flaws?

    ~Martin
  • onkar-deshpande
    onkar-deshpande New Altair Community Member
    Thanks for the reply. I was not setting any encoding standard while writing document due to which it was getting system default encoding standard. Now I have set the encoding standard to UTF-8 and its working.

    Thanks for your help.

    Regards,
    Onkar