Something about Chinese Disorder Code

magicdmer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 24 01:48:43 PST 2015


I display chinese string like:

auto str = "你好,世界"
writeln(str)

and The display is garbled。

some windows api like MessageBoxA ,if string is chinese, it 
displays disorder code too

i think i must use WideCharToMultiByte to convert it , is there 
any other answer to solve this question simplely


More information about the Digitalmars-d-learn mailing list