[Issue 10725] DMD can't output Hangul(Korean alphbet) (codepage 949(hangul))

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 28 09:43:38 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10725


monarchdodra at gmail.com changed:

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


--- Comment #2 from monarchdodra at 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: -------


More information about the Digitalmars-d-bugs mailing list