[
https://issues.apache.org/jira/browse/GEODE-9104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17313562#comment-17313562
]
ASF subversion and git services commented on GEODE-9104:
--------------------------------------------------------
Commit 1b2fe6d185edf578aa764c49e85a766526c8ca68 in geode's branch
refs/heads/develop from Barry Oglesby
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=1b2fe6d ]
Revert "GEODE-9104: Removed ESCAPE_NON_ASCII feature so non-ASCII characters
are displayed" (#6249)
This reverts commit b7299661375ed0926303f63484cb46dae1e12ffa.
> 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
> Assignee: Barrett Oglesby
> Priority: Major
> Labels: pull-request-available
>
> 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)