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); } ---

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\d>dmd hello.

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\d>dmd he