www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10725] New: DMD can't output Hangul(Korean alphbet) (codepage 949(hangul))

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10725

           Summary: DMD can't output Hangul(Korean alphbet) (codepage
                    949(hangul))
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: rlawlgn507 naver.com



//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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 28 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10725





 //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.
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 28 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10725


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra gmail.com




 //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) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 28 2013