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

Paul King commented on GROOVY-10685:
------------------------------------

It looks like the Boon parser (from which Groovy is forked) was the same as 
Groovy, then changed to the behavior you are asking for and then added the 
support back in for asciiOnly (Groovy's behavior) as an option. I think we 
should certainly have at least an option.

Issue:
https://github.com/boonproject/boon/issues/234

Adding asciiOnly option back in:
https://github.com/boonproject/boon/commit/24894b982fe

> 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, image-2022-07-09-10-12-16-325.png, 
> image-2022-07-09-10-12-40-593.png, image-2022-07-09-10-12-58-077.png
>
>
> when i use the default JsonOutput.toJson() ,the String is chinese,output is 
> not chinses, like unicode。
> !image-2022-07-09-08-56-35-658.png!
>  
> output:
> !image-2022-07-09-08-57-15-627.png!
>  
> i hope when the String is chinese, the output is alse chinese, like Gson, for 
> example.
> !image-2022-07-09-10-12-58-077.png!
>  
> output:
> !image-2022-07-09-10-12-40-593.png!



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

Reply via email to