Reading unicode chars..
seany via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 3 08:41:59 PDT 2014
On Tuesday, 2 September 2014 at 21:13:04 UTC, monarch_dodra wrote:
> What's wrong with reading line by line, but processing the
> characters in said lines 1 by 1? That works "out of the box".
import std.stdio;
import std.conv;
import core.vararg;
void main() {
string aa = "abc „";
foreach (aaa; aa)
writeln(aaa);
}
output :
a
b
c
�
�
�
Linux 64 bit netrunner, console font set to Raleway,, then to
Quivira - both supports the character in discussion.
More information about the Digitalmars-d-learn
mailing list