[Issue 12897] std.json.toJSON doesn't translate unicode chars(>=0x80) to "\uXXXX"
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Mar 22 10:22:50 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=12897
b2.temp at gmx.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |b2.temp at gmx.com
Assignee|nobody at puremagic.com |b2.temp at gmx.com
--- Comment #3 from b2.temp at gmx.com ---
(In reply to egustc from comment #2)
> OK... I used Python but didn't decode first and got a problem.
>
> (In reply to Justin Whear from comment #1)
> > Looking at the spec
> > (http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf)
> > it appears that while strings _may_ encode characters using the escape
> > sequence, they are not _required_ to for any range of characters. On the
> > face of it it seems that std.json is conformant and other languages are not.
> > Which parsers are unable to handle the raw UTF-8?
I propose a PR for this
(https://github.com/D-Programming-Language/phobos/pull/4106), but it was not
clear if you considered the problem as fixed or not.
Maybe it can even be closed without any modification. Let's see what people
say.
--
More information about the Digitalmars-d-bugs
mailing list