_GETACP — Returns the current Windows code page.

Syntax:
%_GETACP

This function returns the current Windows code page. (This value is also traditionally miscalled the ‘ANSI code page’, although it has nothing to do with ANSI.) Note that this value can and usually does differ from the OEM code page returned by %_CODEPAGE.

echo The current Windows code page is %_getacp.