• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    JSON Import / Export Issues with Characters:

    User help
    2
    4
    875
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TurboT
      Turbo
      last edited by

      Greetings, all:

      I do a lot of JSON exports to build up my monitored facilities. I've got a Big Folder here of equipment I've configured, and when I set up a New Site, I just grab the JSON's I need, import them, and then go forth with strength and vigor.

      Something I've noticed, though- The import tool seems to choke on certain things in the "unit"-- 0_1573757947918_ImportParse.PNG

      This is in the Legacy import page, as I import it here, then use the "copy" button to configure the rest of my sources after fixing one of the imported ones.

      When you look at the JSON file in question, you see ""unit":"W?h"," instead of "Wh" or something else.

      So- This is an export from Mango 3.6.5 into a new Mango 3.6.5. This only seems to happy on the pre-defined data types. I'm gradually removing these from my JSON in favor of ascii-printable units, but this is still something that exists.

      It's not a Big Deal, just letting you all know.

      1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire
        last edited by

        You need to save the file with UTF8 character encoding. If you just copy and paste it should not have a problem.

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • TurboT
          Turbo
          last edited by

          Greetings, Jared:

          Thanks for the response-- I'm literally clicking the "export button", then hitting "SAVE AS", then opening it in Notepad++ to find/replace on various names and such, and then pasting it back in. I sort of assumed Notepad ++ was UTF-8, but I suppose maybe it isn't.

          I'll copy'n'paste in the future.

          Cheers,
          -Greg

          1 Reply Last reply Reply Quote 0
          • Jared WiltshireJ
            Jared Wiltshire
            last edited by

            You may just have to change the default character encoding somewhere. This is how my text editor complains if I have Windows 1252 encoding selected when I paste the content in -

            0_1573850892935_3d5760f1-1b2a-403f-af5d-046617e95439-image.png

            Developer at Radix IoT

            1 Reply Last reply Reply Quote 0
            • First post
              Last post