Table of contents

  1. set @inputcp
  2. get @inputcp

set @inputcp

Set the input codepage.

Normally is not needed change the input codepage, because it is used to translate the keyboard input into the corresponding character value.

Parameters: Number codepage.

If you omit the codepage parameter is used the OEM codepage.

The next codepage alias can be used:

  • utf8
  • oem
  • ansi
rem set input codepage: utf-8
set "@inputcp=65001"

rem set input codepage: oem
set "@inputcp="

get @inputcp

Get the input codepage.

rem get input codepage
echo input codepage: !@inputcp!