Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Notepad.exe shows incorrect characters in file created by redirected output from command line utilities on non-English systems


View products that this article applies to.

Symptoms

Running command line tools and redirecting the output to a file on a non-English system may produce unreadable characters when the file is openned by notepad.exe.�

For example run the following on Russian Windows 7 in command window.

ipconfig /all�





ipconfig /all >output.txt

notepad.exe output.txt




↑ Back to the top


Cause

Utilities run from the command prompt use OEM codepages.�Notepad.exe uses Windows code pages. See�http://msdn.microsoft.com/en-us/goglobal/bb964653.aspx for a description of codepages.

↑ Back to the top


Resolution

There are several options for viewing the text output.

1. Open output.txt with Microsoft Word or any editor that supports OEM and Windows endcoding.

or

2. Run ipconfig in powershell instead of the Windows Command Prompt.

or

3. Cut and paste the output from ipconfig to notepad instead of redirecting to a file.

↑ Back to the top


More information

This behavior�occurs on all versions of Windows and is by design. Incorrect characters will occur on most codepages due to differences in Windows and OEM codepages.�This behavior will be most noticable on non-Latin languages such as Russian and Greek.

↑ Back to the top


Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

↑ Back to the top


Keywords: KB2360394

↑ Back to the top

Article Info
Article ID : 2360394
Revision : 1
Created on : 8/30/2010
Published on : 8/30/2010
Exists online : False
Views : 326