Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 2360394 - Last Review: August 30, 2010 - Revision: 1.0
Notepad.exe shows incorrect characters in file created by redirected output from command line utilities on non-English systems
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Â
Collapse this imageExpand this image
ipconfig /all >output.txt
notepad.exe output.txt
Collapse this imageExpand this image
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
(http://msdn.microsoft.com/en-us/goglobal/bb964653.aspx)
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.
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.
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.
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
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations.
APPLIES TO
- Windows 7 Enterprise
- Windows 7 Home Basic
- Windows 7 Home Premium
- Windows 7 Professional
- Windows 7 Ultimate
- Windows 7 Starter
- Windows Vista Business
- Windows Vista Enterprise
- Windows Vista Home Basic
- Windows Vista Home Premium
- Windows Server 2008 R2 Enterprise
- Windows Server 2008 Enterprise
- Windows Server 2008 R2 Standard
- Windows Server 2008 Standard
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate