<html><head></head><body>Thank you for your help. But if I change the default setting,will it affect other programs,making other console program show messy code?<br><br><div class="gmail_quote">On 2014年5月11日 格林尼治标准时间+0800下午12时30分40秒, "Ali Çehreli via Digitalmars-d-learn" <digitalmars-d-learn@puremagic.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 05/10/2014 07:19 PM, IceNature via Digitalmars-d-learn wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> When there are Chinese characters in the output, the console will       display messy code.I change the encoding of the source file into       UTF-8 or UTF-16,but the messy code is still there...<br />         I use the dmd 2.065,Visual Studio 2013 with VisualD.<br />         How to solve this problem?<br />         Thank you!</blockquote><br /><br />If this is on Windows, you must<br /><br />1) Set the console code page to 65001 e.g. by the command<br /><br />   chcp 65001<br /><br />(It is possible to make it the default through a Windows registry setting.)<br /><br />2) Set the font to a unicode one e.g. Lucida<br /><br />Ali<br /><br />.<br /><br /></pre></blockquote></div></body></html>