"Andrej Mitrovic" <[email protected]> wrote in message
news:[email protected]...
>On 1/14/11, Nick Sabalausky <[email protected]> wrote:
>> import std.stdio;
>>
>> version(Windows)
>> {
>> import std.c.windows.windows;
>> extern(Windows) export BOOL SetConsoleOutputCP(UINT);
>> }
>>
>> void main()
>> {
>> version(Windows) SetConsoleOutputCP(65001);
>>
>> writeln("HuG says: Fukken Über Death Terminal");
>> }
>>
>
>Does that work for you? I get back:
>HuG says: Fukken Ãber Death Terminal
>
Yea, it works for me (XP Pro SP2 32-bit), and my "chcp" is 437, not 65001.
The NG or copy-paste might have messed it up. Try with a code-point escape
sequence:
import std.stdio;
version(Windows)
{
import std.c.windows.windows;
extern(Windows) export BOOL SetConsoleOutputCP(UINT);
}
void main()
{
version(Windows) SetConsoleOutputCP(65001);
writeln("HuG says: Fukken \u00DCber Death Terminal");
}