Unicode -> Windows 1252

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Mar 16 17:21:43 PDT 2011


On 3/17/11, Tom <tom at nospam.com> wrote:
> El 16/03/2011 20:36, Tom escribió:
>> El 16/03/2011 19:27, Andrej Mitrovic escribió:
>>> import std.c.windows.windows;
>>> extern(Windows) BOOL SetConsoleOutputCP(UINT);
>>> SetConsoleOutputCP(65001);
>>
>> Tried a bunch of values and all yields the same result.
>>
>> Thanks anyway.
>
>
> Forget it, I'll just use chcp...
>

You probably already know this, but you can do that programmatically:

import std.process;
void main()
{
    system("chcp 1252");
}


More information about the Digitalmars-d-learn mailing list