Bug 10725 – DMD can't output Hangul(Korean alphbet) (codepage 949(hangul))

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2013-07-28T08:07:17Z
Last change time
2023-01-04T13:35:09Z
Assigned to
No Owner
Creator
김지후

Comments

Comment #0 by rlawlgn507 — 2013-07-28T08:07:17Z
//I compiled this code import std.stdio; int main() { write("d언어"); //'d언어' means d language return 0; } //this code outputs 'd?몄뼱'(codepage 949) //but it outputs when codepage 65001 nomally //I'm not good at english. so I'm begging your understanding.
Comment #1 by rlawlgn507 — 2013-07-28T08:09:14Z
(In reply to comment #0) > //I compiled this code > > import std.stdio; > > int main() > { > write("d언어"); //'d언어' means d language > > return 0; > } > > //this code outputs 'd?몄뼱'(codepage 949) > //but it outputs when codepage 65001 normally > > //I'm not good at english. so I'm begging your understanding.
Comment #2 by monarchdodra — 2013-07-28T09:43:36Z
(In reply to comment #0) > //I compiled this code > > import std.stdio; > > int main() > { > write("d언어"); //'d언어' means d language > > return 0; > } > > //this code outputs 'd?몄뼱'(codepage 949) > //but it outputs when codepage 65001 nomally > > //I'm not good at english. so I'm begging your understanding. Are you on windows? The problem is with the *terminal*, that interprets the output using codepage 949, when it should be using 65001. You can change the code page with: chcp 65001 Use "Lucida Console" to properly display the characters. *Should* work (I think)