You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Barrett Oglesby (Jira)" <ji...@apache.org> on 2021/03/30 17:54:00 UTC

[jira] [Created] (GEODE-9104) REST query output displays non-ASCII characters using escapes

Barrett Oglesby created GEODE-9104:
--------------------------------------

             Summary: REST query output displays non-ASCII characters using escapes
                 Key: GEODE-9104
                 URL: https://issues.apache.org/jira/browse/GEODE-9104
             Project: Geode
          Issue Type: Bug
          Components: rest (dev)
            Reporter: Barrett Oglesby


For example, if JSON containing Chinese characters is put:
{noformat}
curl -X PUT -H "Content-Type: application/json" localhost:8081/geode/v1/customers/1 -d '{"id": "1", "firstName": "名", "lastName": "姓"}'
{noformat}
The results of getting the entry are correct:
{noformat}
curl localhost:8081/geode/v1/customers/1
{
  "id" : "1",
  "firstName" : "名",
  "lastName" : "姓"
}
{noformat}
The results of querying the entry show the field values escaped:
{noformat}
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"
} ]
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)