Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to-json unicode fail #6

Open
jdv opened this issue Jan 27, 2017 · 1 comment
Open

to-json unicode fail #6

jdv opened this issue Jan 27, 2017 · 1 comment

Comments

@jdv
Copy link

jdv commented Jan 27, 2017

JSON::Tiny at least does it correctly:

[jdv@new-host-2 ~]$ perl6 -MJSON::Tiny -e 'say to-json("\c[woman gesturing OK]")'
"\ud83d\ude46\u200d\u2640\ufe0f"
[jdv@new-host-2 ~]$ perl6 -MJSON::Pretty -e 'say to-json("\c[woman gesturing OK]")'
"\u1f646"
[jdv@new-host-2 ~]$

But there should also be an option to not encode unicode chars as they are legal in json.

@lizmat
Copy link
Contributor

lizmat commented Sep 24, 2023

The module has moved to community modules, and I just released a new version depending on the latest JSON::Fast, which solved at least on TODO in its tests.

Please close this issue if this is now being handled ok, or provide additional information of the problem, or provide a PR :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants