Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9104

REST query output displays non-ASCII characters using escapes

    XMLWordPrintableJSON

Details

    Description

      For example, if JSON containing Chinese characters is put:

      curl -X PUT -H "Content-Type: application/json" localhost:8081/geode/v1/customers/1 -d '{"id": "1", "firstName": "名", "lastName": "姓"}'
      

      The results of getting the entry are correct:

      curl localhost:8081/geode/v1/customers/1
      {
        "id" : "1",
        "firstName" : "名",
        "lastName" : "姓"
      }
      

      The results of querying the entry show the field values escaped:

      curl -G http://localhost:8081/gemfire-api/v1/queries/adhoc --data-urlencode "q=SELECT * FROM /customers where id='1'"
      [ {
        "id" : "1",
        "firstName" : "\u540D",
        "lastName" : "\u59D3"
      } ]
      

      Attachments

        Activity

          People

            boglesby Barrett Oglesby
            boglesby Barrett Oglesby
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: