D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10725 - DMD can't output Hangul(Korean alphbet) (codepage 949(hangul))
Summary: DMD can't output Hangul(Korean alphbet) (codepage 949(hangul))
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Windows
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-28 08:07 UTC by 김지후
Modified: 2023-01-04 13:35 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description 김지후 2013-07-28 08:07:17 UTC
//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 김지후 2013-07-28 08:09:14 UTC
(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 monarchdodra 2013-07-28 09:43:36 UTC
(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)