RE: Japanese Windows Code Page?

From: Paul Dempsey (paulde@microsoft.com)
Date: Wed Feb 09 2000 - 11:25:53 EST


> -----Original Message-----
> From: John Cowan [mailto:jcowan@reutershealth.com]
...
> Chris Pratley wrote:
>...I believe that version of Notepad
> relied on the BOM to
> > detect Unicode text files.
>
> This turns out not to be quite true: as we saw a few months
> ago ...

Notepad uses the NT API IsTextUnicode.
 
> I don't know how to make Windows NT cough up its current ANSI
> code page setting, though.

I know you mean using a stock system, but this trivial program does it:

#include <windows.h>
#include <stdio.h>
int main(int argc, char* argv[])
{
  printf("ANSI Codepage: %d, OEM Codepage: %d\r\n", GetACP(), GetOEMCP());
  return 0;
}

--- Paul



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:58 EDT