Table of contents

  1. set @codepage

set @codepage

Set the input and output codepage, like the chcp command.

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

Note: Is recommended use instead of this the extension @outputcp.

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 and output codepage: utf-8
set "@codepage=65001"

rem set input and output codepage: oem
set "@codepage="