Change codepage in windows

Change codepage in windows

21525 просмотра

6 ответа

My Windows cmd CodePage is now under 65001. Since I was doing some Android stuff and need to use console log, but forget how changing it now.

When using chcp 437 to change the CodePage back, it works. But if I start a new cmd window, it goes back.

How to do the chcp thing to make it pernament?

Ответы (6)

8 плюса

Here I found a better solution:

  1. Start -> Run -> regedit
  2. Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
  3. Add new String Value named: Autorun
  4. Change the value to ‘chcp 437’

7 плюса

Create a start up batch file that includes all the commands you want.

Then edit the registry to point to your start up file.

c:\startup.cmd

HKLM\SOFTWARE\Microsoft\Command Processor
AUTORUN=»C:\startup.cmd»

2 плюса

Command prompt code page always change back to the default 437 if you just use chcp 850 in cmd to change the active language code (850 = Multilingual (Latin I)). My system default language is set to English (437) although I’m Brazilian (language code 850). Once I need to show some special characters such as ã, õ, ç, I found that at Windows 10, under All Settings > Time & Language > Region & Language there is (at the top right corner) a link for Related settings — Additional date, time & regional settings. From there you’ll be redirected to Control Panel\Clock, Language, and Region. Click again on Region > Change Location and at the window Region, at the tab Administrative, change the Language for non-Unicode programs by clicking the button Change system locale and choosing some other that uses the code you need (In my case, Portuguese (Brazil) = code 850). Restart Windows and check if your command prompt is now set to the new language code (type chcp in cmd). For me, it solved the problem. There is also a Latin (Word) option on the list that I suppose is also code 850.

1 плюс

In the 1809 build of Windows 10 I’ve managed to permanently solve this by going to the system’s Language settings , selecting Administrative language settings , clicking Change system locale. and checking the Beta: Use Unicode UTF-8 for worldwide language support box and then restarting my pc.

This way it applies to all applications, even those ones that I don’t start from a command prompt!

Автор: Isti115 Размещён: 11.05.2019 02:44

0 плюса

Setting the default CMD/shell Codepage can be neatly done using the following command:

This will make the codepage 437 your default, but ONLY in the cmd/shell, meaning the rest of the OS is safe and the boot environment ist untouched. Instead of always changing the codepage whenever the cmd opens, the cmd will open in the specified codepage from start.

If you wish to edit it manually using regedit.exe, beware that you have to set the codepage value in ‘decimal’ (use the radio-buttons for selecting decimal or hex input).

-2 плюса

You can edit code page value permanently by editing OEMCP key value in windows in above reg key value

Warning: Don’t do it, it will make your system unable to boot. See related.

2.2.1 Supported Codepage in Windows

Windows assigns an integer, called code page ID, to every supported codepage .

Based on the usage, the codepage supported in Windows can be categorized in the following:

Windows codepages are also sometimes referred to as active codepages or system active codepages. Windows always has one currently active Windows codepage. All ANSI Windows functions use the currently active codepage.

The usual ANSI codepage ID for US English is codepage 1252.

Windows codepage 1252, the codepage commonly used for English and other Western European languages, was based on an American National Standards Institute (ANSI) draft. That draft eventually became ISO 8859-1, but Windows codepage 1252 was implemented before the standard became final, and is not exactly the same as ISO 8859-1.

Читайте также:  Amd vulkan drivers linux

These codepages cannot be used as ANSI codepages, or OEM codepages. Windows can support conversions between Unicode and these codepages. These codepages are generally used for information exchange purpose with international/national standard or legacy systems. Examples are UTF-8, UTF-7, EBCDIC, and Macintosh codepages.

The following table shows all the supported codepages by Windows. The Codepage ID lists the integer number assigned to a codepage. ANSI/OEM codepages are in bold face. The Codepage Description column describes the codepage. The Codepage notes column lists the category of a codepage and the relevant protocol section in this document to find protocol information.

IBM EBCDIC US-Canada

Extended codepage; for processing rules, see section 3.1.5.1.1 .

OEM United States

OEM codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC International

Extended codepage; for processing rules, see section 3.1.5.1.1.

Arabic (ASMO 708)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Arabic (Transparent ASMO); Arabic (DOS)

Extended codepage; for processing rules, see section 3.1.5.1.1.

OEM Greek (formerly 437G); Greek (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Baltic; Baltic (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Multilingual Latin 1; Western European (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Latin 2; Central European (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Cyrillic (primarily Russian)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Turkish; Turkish (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Multilingual Latin 1 + Euro symbol

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Portuguese; Portuguese (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Icelandic; Icelandic (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Hebrew; Hebrew (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM French Canadian; French Canadian (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Arabic; Arabic (864)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Nordic; Nordic (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Russian; Cyrillic (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

OEM Modern Greek; Greek, Modern (DOS)

OEM codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Multilingual/ROECE (Latin 2); IBM EBCDIC Multilingual Latin 2

Extended codepage; for processing rules, see section 3.1.5.1.1.

ANSI/OEM Thai (same as 28605, ISO 8859-15); Thai (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Greek Modern

Extended codepage; for processing rules, see section 3.1.5.1.1.

ANSI/OEM Japanese; Japanese (Shift-JIS)

ANSI/OEM codepage; for processing rules, see section 3.1.5.1.1.

ANSI/OEM Simplified Chinese (PRC, Singapore); Chinese Simplified (GB2312)

ANSI/OEM codepage; for processing rules, see section 3.1.5.1.1.

ANSI/OEM Korean (Unified Hangul Code)

ANSI/OEM codepage; for processing rules, see section 3.1.5.1.1.

ANSI/OEM Traditional Chinese (Taiwan; Hong Kong SAR, PRC); Chinese Traditional (Big5)

ANSI/OEM codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Turkish (Latin 5)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Latin 1/Open System

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC US-Canada (037 + Euro symbol); IBM EBCDIC (US-Canada-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Germany (20273 + Euro symbol); IBM EBCDIC (Germany-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Denmark-Norway (20277 + Euro symbol); IBM EBCDIC (Denmark-Norway-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Finland-Sweden (20278 + Euro symbol); IBM EBCDIC (Finland-Sweden-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Italy (20280 + Euro symbol); IBM EBCDIC (Italy-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Latin America-Spain (20284 + Euro symbol); IBM EBCDIC (Spain-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Читайте также:  Pentium m 770 windows 10

IBM EBCDIC United Kingdom (20285 + Euro symbol); IBM EBCDIC (UK-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC France (20297 + Euro symbol); IBM EBCDIC (France-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC International (500 + Euro symbol); IBM EBCDIC (International-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Icelandic (20871 + Euro symbol); IBM EBCDIC (Icelandic-Euro)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Unicode UTF-16, little-endian byte order (BMP of ISO 10646); available only to managed applications

Not used in Windows.

Unicode UTF-16, big-endian byte order; available only to managed applications

Not used in Windows.

ANSI Central European; Central European (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI Cyrillic; Cyrillic (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI Latin 1; Western European (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI Greek; Greek (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI Turkish; Turkish (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI Hebrew; Hebrew (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI Arabic; Arabic (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI Baltic; Baltic (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

ANSI/OEM Vietnamese; Vietnamese (Windows)

ANSI codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

MAC Roman; Western European (Mac)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

MAC Traditional Chinese (Big5); Chinese Traditional (Mac)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

MAC Simplified Chinese (GB 2312); Chinese Simplified (Mac)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

MAC Latin 2; Central European (Mac)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Unicode UTF-32, little-endian byte order; available only to managed applications

Not used in Windows.

Unicode UTF-32, big-endian byte order; available only to managed applications

Not used in Windows.

CNS Taiwan; Chinese Traditional (CNS)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Eten Taiwan; Chinese Traditional (Eten)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

IA5 (IRV International Alphabet No. 5, 7-bit); Western European (IA5)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IA5 German (7-bit)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IA5 Swedish (7-bit)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IA5 Norwegian (7-bit)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 6937 Non-Spacing Accent

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Germany

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Denmark-Norway

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Finland-Sweden

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Italy

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Latin America-Spain

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC United Kingdom

Extended codepage; for processing rules, see section 3.1.5.1.1.

Читайте также:  Установка windows невозможна mbr gpt

IBM EBCDIC Japanese Katakana Extended

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC France

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Arabic

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Greek

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Hebrew

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Korean Extended

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Thai

Extended codepage; for processing rules, see section 3.1.5.1.1.

Russian (KOI8-R); Cyrillic (KOI8-R)

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Icelandic

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Cyrillic Russian

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Turkish

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Latin 1/Open System (1047 + Euro symbol)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Japanese (JIS 0208-1990 and 0121-1990)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Simplified Chinese (GB2312); Chinese Simplified (GB2312-80)

Extended codepage; for processing rules, see section 3.1.5.1.1.

Extended codepage; for processing rules, see section 3.1.5.1.1.

IBM EBCDIC Cyrillic Serbian-Bulgarian

Extended codepage; for processing rules, see section 3.1.5.1.1.

Ext Alpha Lowercase

Extended codepage; for processing rules, see section 3.1.5.1.1. NOTE: Although this codepage is supported, it has no known use.

Ukrainian (KOI8-U); Cyrillic (KOI8-U)

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-1 Latin 1; Western European (ISO)

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-2 Central European; Central European (ISO)

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-3 Latin 3

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-4 Baltic

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-5 Cyrillic

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-6 Arabic

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-7 Greek

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-8 Hebrew; Hebrew (ISO-Visual)

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-9 Turkish

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-13 Estonian

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-15 Latin 9

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 8859-8 Hebrew; Hebrew (ISO-Logical)

Extended codepage; for processing rules, see section 3.1.5.1.1. Use [CODEPAGEFILES] 28598.txt.

ISO 2022 Japanese with no halfwidth Katakana; Japanese (JIS)

Extended codepage; for processing rules, see section 3.1.5.1.1.

ISO 2022 Japanese with halfwidth Katakana; Japanese (JIS-Allow 1 byte Kana)

Extended codepage; for processing rules, see section 3.1.5.1.2 .

ISO 2022 Japanese JIS X 0201-1989; Japanese (JIS-Allow 1 byte Kana — SO/SI)

Extended codepage; for processing rules, see section 3.1.5.1.2.

ISO 2022 Korean

Extended codepage; for processing rules, see section 3.1.5.1.2.

ISO 2022 Simplified Chinese; Chinese Simplified (ISO 2022)

Extended codepage; for processing rules, see section 3.1.5.1.2.

ISO 2022 Traditional Chinese

Extended codepage; for processing rules, see section 3.1.5.1.2.

Extended codepage; for processing rules, see section 3.1.5.1.2. Use [CODEPAGEFILES] 20949.txt.

HZ-GB2312 Simplified Chinese; Chinese Simplified (HZ)

Extended codepage; for processing rules, see section 3.1.5.1.2.

GB18030 Simplified Chinese (4 byte); Chinese Simplified (GB18030)

Extended codepage; for processing rules, see section 3.1.5.1.3 .

Extended codepage; for processing rules, see section 3.1.5.1.4 .

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.4.

ISCII Odia (was Oriya)

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.4.

Extended codepage; for processing rules, see section 3.1.5.1.5 .

Extended codepage; for processing rules, see section 3.1.5.1.6 .

Оцените статью