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

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

    [ https://issues.apache.org/jira/browse/GROOVY-10685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17564488#comment-17564488 ] 

Eric Milles edited comment on GROOVY-10685 at 7/9/22 2:04 AM:
--------------------------------------------------------------

What are you expecting?  That looks like proper encoded characters.


was (Author: emilles):
What are you expecting?  That looks like proper encoded JSON. 

> 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
>            Priority: Minor
>         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)