Re: How to write asia characters on console?

2015-02-12 Thread FrankLike via Digitalmars-d-learn
On Sunday, 8 February 2015 at 05:57:31 UTC, Lave Zhang wrote: Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); } --- But the output is not

Re: How to write asia characters on console?

2015-02-11 Thread Kagamin via Digitalmars-d-learn
https://issues.dlang.org/show_bug.cgi?id=2742

Re: How to write asia characters on console?

2015-02-11 Thread Andre Artus via Digitalmars-d-learn
On Sunday, 8 February 2015 at 05:56:22 UTC, Lave Zhang wrote: Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); } --- But the output is not

Re: How to write asia characters on console?

2015-02-08 Thread Lave Zhang via Digitalmars-d-learn
On Sunday, 8 February 2015 at 06:26:38 UTC, Ali Çehreli wrote: On 02/07/2015 09:57 PM, Lave Zhang wrote: Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); }

Re: How to write asia characters on console?

2015-02-08 Thread mzfhhhh via Digitalmars-d-learn
Thanks, my problem has been solved:) --- import std.stdio; import core.stdc.wchar_; extern(C) int setlocale(int, char*); static this() { fwide(core.stdc.stdio.stdout, 1); setlocale(0, cast(char*)china); } int main(string[] args) { string s1 =

Re: How to write asia characters on console?

2015-02-07 Thread Ali Çehreli via Digitalmars-d-learn
On 02/07/2015 09:57 PM, Lave Zhang wrote: Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); } --- But the output is not correct(and my console

Re: How to write asia characters on console?

2015-02-07 Thread weaselcat via Digitalmars-d-learn
On Sunday, 8 February 2015 at 05:57:31 UTC, Lave Zhang wrote: Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); } --- But the output is not

How to write asia characters on console?

2015-02-07 Thread Lave Zhang via Digitalmars-d-learn
Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); } --- But the output is not correct(and my console codepage is 936): C:\D\dmd2\samples\ddmd hello.d

How to write asia characters on console?

2015-02-07 Thread Lave Zhang via Digitalmars-d-learn
Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); } --- But the output is not correct(and my console codepage is 936): C:\D\dmd2\samples\ddmd