how to get the \uxxxx unicode code from a char

Sean Kelly via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 14 12:49:15 PDT 2014


On Tuesday, 14 October 2014 at 19:47:00 UTC, jicman wrote:
>
> Greetings.
>
> Imagine this code,
>
> char[] s = "ABCabc";
> foreach (char c; s)
> {
>   // how do I convert c to something an Unicode code? ie. 
> \u9999.
>
> }

I'd look at the JSON string encoder.


More information about the Digitalmars-d-learn mailing list