You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "zouchangpeng (Jira)" <ji...@apache.org> on 2022/07/09 01:00:01 UTC

[jira] [Created] (GROOVY-10685) the default JsonOutput.toJson() can't handle when the String is chinese.

zouchangpeng created GROOVY-10685:
-------------------------------------

             Summary: the default JsonOutput.toJson() can't handle when the String is chinese.
                 Key: GROOVY-10685
                 URL: https://issues.apache.org/jira/browse/GROOVY-10685
             Project: Groovy
          Issue Type: Wish
            Reporter: zouchangpeng
         Attachments: image-2022-07-09-08-56-35-658.png, image-2022-07-09-08-57-15-627.png

当我使用默认的 JsonOutput.toJson() 时,遇到 String 是中文的,输出不正确。

!image-2022-07-09-08-56-35-658.png!

 

输出是:

!image-2022-07-09-08-57-15-627.png!

 

我希望当句柄字符串为中文时,默认操作可以正确处理。



--
This message was sent by Atlassian Jira
(v8.20.10#820010)