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