Re: String characters not extended

2017-01-04 Thread Anonymouse via Digitalmars-d-learn
On Tuesday, 3 January 2017 at 19:40:20 UTC, Daniel Kozák wrote: Why do not use CP_UTF8 constant instead of 65001? It is safer, easier to read and understand I have no reason to back it up with. I'm literally just copy/pasting what others have suggested I use.

Re: String characters not extended

2017-01-03 Thread Daniel Kozák via Digitalmars-d-learn
Anonymouse via Digitalmars-d-learn napsal Út, led 3, 2017 v 12∶34 : On Monday, 2 January 2017 at 21:07:37 UTC, Ignacious wrote: [...] Assuming Windows: version(Windows) shared static this() { import core.sys.windows.windows; SetConsoleCP(65001); SetConsoleOutputCP(65001); } W

Re: String characters not extended

2017-01-03 Thread Anonymouse via Digitalmars-d-learn
On Monday, 2 January 2017 at 21:07:37 UTC, Ignacious wrote: [...] Assuming Windows: version(Windows) shared static this() { import core.sys.windows.windows; SetConsoleCP(65001); SetConsoleOutputCP(65001); }

Re: String characters not extended

2017-01-02 Thread bauss via Digitalmars-d-learn
On Monday, 2 January 2017 at 21:07:37 UTC, Ignacious wrote: when one prints out a string with some extended(I guess it's unicode), writeln prints out the ascii versions that do not correspond to what they really are. e.g., an umlaut is printed out as 1/2 or something. how to get it to print t

Re: String characters not extended

2017-01-02 Thread Nicholas Wilson via Digitalmars-d-learn
On Monday, 2 January 2017 at 21:07:37 UTC, Ignacious wrote: when one prints out a string with some extended(I guess it's unicode), writeln prints out the ascii versions that do not correspond to what they really are. e.g., an umlaut is printed out as 1/2 or something. how to get it to print t

String characters not extended

2017-01-02 Thread Ignacious via Digitalmars-d-learn
when one prints out a string with some extended(I guess it's unicode), writeln prints out the ascii versions that do not correspond to what they really are. e.g., an umlaut is printed out as 1/2 or something. how to get it to print the correct codes?