The File Conversion Encoding dialog box appears when you open a text file (290981)
The information in this article applies to:
This article was previously published under Q290981
For a Microsoft Word 2000 version of this article, see 817140.
IMPORTANT: This article contains information about modifying the registry.
Before you modify the registry, make sure to back it up and make sure that you
understand how to restore the registry if a problem occurs. For information
about how to back up, restore, and edit the registry, click the following
article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows Registry SYMPTOMS When you open a text file in Microsoft Word, the File Conversion Encoding dialog box may appear. CAUSE Word may automatically detect the encoding standard that is
used in a text file. When the file's encoding standard matches the default
encoding standard that is used to save files as plain text in the version of
Microsoft Windows that you are running, Word opens the file directly. However,
when Word cannot determine the encoding standard of the text file that you are
opening, Word displays the File Conversion Encoding dialog box to allow you to select the encoding standard that you
want to use to open the file. RESOLUTIONService Pack InformationThis problem is corrected in Office XP Service Pack 3.
To resolve this problem, obtain the latest service pack for Microsoft Office XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
307841 How to obtain the latest Office XP service pack
How to obtain the hotfixThis issue is fixed in the Word 2002 Post-Service Pack 2 Hotfix Package July 1, 2003. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 823321 Availability of Word 2002 post-Service Pack 2 hotfix package: July 1, 2003 After you install this fix, follow the steps that are listed in the "More Information" section of this article to set the DefaultCPG registry key and to activate the fix. WORKAROUNDMicrosoft
provides programming examples for illustration only, without warranty either
expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes
that you are familiar with the programming language being demonstrated and the
tools used to create and debug procedures. Microsoft support professionals can
help explain the functionality of a particular procedure, but they will not
modify these examples to provide added functionality or construct procedures to
meet your specific needs. If you have limited programming experience, you may
want to contact a Microsoft Certified Partner or the Microsoft fee-based
consulting line at (800) 936-5200. For more information about Microsoft
Certified Partners, visit the following Microsoft Web site: For more information about the support options that are available
and about how to contact Microsoft, visit the following Microsoft Web site:
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
290140
How to run sample code for the Office XP programs from Knowledge Base articles
To prevent Word from displaying the File Conversion Encoding dialog box, create a macro similar to the following, which opens
the text file with the encoding scheme that you specify:
Sub MyOpenDocumentMacro()
' Replace the File Name example with the path to your text file.
Documents.Open FileName:="C:\My documents\Address.txt", _
Format:=wdOpenFormatText, Encoding:=msoEncodingUSASCII
End Sub
For more information about the Encoding property,
in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type encoding in the Office Assistant or the Answer Wizard, and then click Search to view the topic. STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
This problem was first corrected in Office XP Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbQFE KBHotfixServer kbfix kbBug kbofficexppresp3fix kbmacroexample KB290981 |
---|
|