_CODEPAGE returns the input code page used by the TCC-RT console.

 

See also CHCP.