Writing unicode strings to the console
monarch_dodra
monarchdodra at gmail.com
Tue Dec 18 22:49:35 PST 2012
On Tuesday, 18 December 2012 at 00:29:56 UTC, Jeremy DeHaan wrote:
> I was playing with unicode strings the other day, and have been
> searching for a way to correctly write unicode to the console.
>
> If I try something like:
>
> dstring String = "さいごの果実";
>
> writeln(String);
>
> All I get is a bunch of nonsense as if it converts the dstring
> into a regular string. Is it possible to write the unicode
> string to the console correctly?
If all else fails, you can always just print to file instead.
That's what I do.
More information about the Digitalmars-d-learn
mailing list