The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

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

onkar-deshpandeonkar-deshpande Member Posts: 5 Contributor II
edited November 2018 in Help
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

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    Often this is caused by wrong encoding. Have you checked this?

    ~Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • onkar-deshpandeonkar-deshpande Member Posts: 5 Contributor II
    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
  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    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
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • onkar-deshpandeonkar-deshpande Member Posts: 5 Contributor II
    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
Sign In or Register to comment.