Dealing with unicode
rikki cattermole via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jul 28 23:35:16 PDT 2016
On 29/07/2016 6:32 PM, Fabian wrote:
> I'm trying to add support for unicode to my app in D and having issues.
>
> string str = "Pokémon No";
> writeln(str);
>
> this outputs:
> Pok├®mon No
>
> what I want to do is change the funky character such that the string reads:
> Pok\u00e9mon No
>
>
> as \u00e9 == é
> how can i do this in D?
Your terminal doesn't support utf-8.
Prints fine using dpaste and gnome-terminal.
More information about the Digitalmars-d-learn
mailing list