www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - unicode console output

reply "Denis Mezhov" <d.o.mezhov gmail.com> writes:
I'm trying out to windows console unicode latin string

writeln("aaabbb");
console out: aaabbb

trying out to console unicode cyrillic string
writeln("бббггг");
console out: ╨│╨│╨│╨▒╨▒╨▒

How to out unicode cyrillic string to console?
Apr 02 2014
next sibling parent reply "bearophile" <bearophileHUGS lycos.com> writes:
Denis Mezhov:

 How to out unicode cyrillic string to console?
Try this command on the command line: chcp 65001 Bye, bearophile
Apr 02 2014
parent reply "Denis Mezhov" <d.o.mezhov gmail.com> writes:
On Wednesday, 2 April 2014 at 12:51:57 UTC, bearophile wrote:
 Denis Mezhov:

 How to out unicode cyrillic string to console?
Try this command on the command line: chcp 65001 Bye, bearophile
chcp 65001 dont'work start.bat mode con cols=150 lines=50 chcp 65001 %Path%\Minesweeper\Debug\Mi.exe don't out correct string
Apr 02 2014
parent reply Jos van Uden <usenet fwend.com> writes:
On 2-4-2014 15:38, Denis Mezhov wrote:
 On Wednesday, 2 April 2014 at 12:51:57 UTC, bearophile wrote:
 Denis Mezhov:

 How to out unicode cyrillic string to console?
Try this command on the command line: chcp 65001 Bye, bearophile
chcp 65001 dont'work start.bat mode con cols=150 lines=50 chcp 65001 %Path%\Minesweeper\Debug\Mi.exe don't out correct string
Do you have a Unicode font selected in the dosbox properties, like Lucida Console ?
Apr 02 2014
parent "Denis Mezhov" <d.o.mezhov gmail.com> writes:
Tnx, chcp 65001 and Lucida font out correct string.
Apr 02 2014
prev sibling parent "MGW" <mgw yandex.ru> writes:
On Wednesday, 2 April 2014 at 12:47:06 UTC, Denis Mezhov wrote:
 I'm trying out to windows console unicode latin string

 writeln("aaabbb");
 console out: aaabbb

 trying out to console unicode cyrillic string
 writeln("бббггг");
 console out: ╨│╨│╨│╨▒╨▒╨▒

 How to out unicode cyrillic string to console?
------------------------------------- On the website http://dlang.ru all the details are written about re-encode the video into Cyrillic.
Apr 02 2014