You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/13 06:27:30 UTC

[GitHub] [apisix] spacewander commented on issue #8498: help request: How to implement `apisix.core.json` encode output Unicode characters

spacewander commented on issue #8498:
URL: https://github.com/apache/apisix/issues/8498#issuecomment-1347809321

   I tried:
   ```
   === TEST 18: hit
   --- ONLY
   --- config
       location /t {
           content_by_lua_block {
               local json = require "apisix.core.json"
   local t = {aaa = "aaaa", bbb = "你好,世界"}
   local json_str = json.encode(t)
   ngx.print(json_str)
           }
       }
   --- response_body
   ```
   Got: `{"bbb":"你好,世界","aaa":"aaaa"}`.
   
   It works fine for me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org