Thread overview
[Issue 10725] New: DMD can't output Hangul(Korean alphbet) (codepage 949(hangul))
Jul 28, 2013
김지후
Jul 28, 2013
김지후
July 28, 2013
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


--- Comment #0 from 김지후 <rlawlgn507@naver.com> 2013-07-28 08:07:17 PDT ---
//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: -------
July 28, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10725



--- Comment #1 from 김지후 <rlawlgn507@naver.com> 2013-07-28 08:09:14 PDT ---
(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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 28, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10725


monarchdodra@gmail.com changed:

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


--- Comment #2 from monarchdodra@gmail.com 2013-07-28 09:43:36 PDT ---
(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)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------