To tell the truth, all is also complicated by the fact that in win32, we present itself to system as "non-UNICODE" application (because of now obsolete demand to support Win95/Win98). That means the console runs in OEM charset... So the conversion is UTF8->OEM charset