how to get the \uxxxx unicode code from a char
Sean Kelly via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 16 12:40:57 PDT 2014
On Tuesday, 14 October 2014 at 20:08:03 UTC, Brad Anderson wrote:
> On Tuesday, 14 October 2014 at 20:05:07 UTC, Brad Anderson
> wrote:
>> https://github.com/D-Programming-Language/phobos/blob/master/std/json.d#L579
>
> Oops. Linked the the parser section. I actually don't see any
> unicode escape encoder in here. Perhaps he meant the upcoming
> JSON module.
Wow... the current std.json doesn't do string encoding? I knew
it was bad, but...
In any case, yes, I mentioned JSON because strings are supposed
to be encoded exactly the way you're asking. It was easier to
point at that than try to outline the process explicitly.
More information about the Digitalmars-d-learn
mailing list