October 16, 2014 Re: how to get the \uxxxx unicode code from a char | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | 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.
|
Copyright © 1999-2021 by the D Language Foundation