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/11 07:50:45 UTC

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

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

   This looks like an encoding issue you are occured. And from your example, you import with the ```local json = require "apisix.core.json"``` but using the ```cjson.encode(t)```.
   You may try this?
   ```
   local json = require "apisix.core.json"
   local t = {aaa = "aaaa", bbb = "你好,世界"}
   local json_str = json.encode(t)
   print(json_str)
   ```


-- 
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