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 

alternate text

ipconfig /all >output.txt

notepad.exe output.txt

alternate text


Utilities run from the command prompt use OEM codepages. Notepad.exe uses Windows code pages. See for a description of codepages.


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.


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


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

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.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!