Windows vs UTF-8 (issue 15845)

Martin Krejcirik via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 3 15:31:13 PDT 2016


Dne 4. 4. 2016 v 0:11 ag0aep6g napsal(a):
> On 04.04.2016 00:07, Martin Krejcirik wrote:
> I'm under the impression that ReadFile is a Windows API function. Is
> that not so? If it isn't, what is the corresponding Windows API function?

Sorry, I missed that in your post. Anyway, after years of trying, I've 
resorted to always converting to/from OEMCP.

You can use fromMBSz, toMBSz, GetConsoleCP, GetConsoleOutputCP functions 
for that.

-- 
mk


More information about the Digitalmars-d mailing list