Weird Characters in File Names

Written by Allen Wyatt (last updated June 5, 2021)
This tip applies to Word 97, 2000, 2002, and 2003


Barbara wrote about a problem she noticed when saving files in Word. She reported that Word is putting a %02 in the document name, every place that there was a space. For example, if she named the document "report one", Word would save it as "report%02one.doc".

This is, indeed, weird behavior. But there is an explanation. First, a clarification: I suspect that the actual code that is being used for spaces is %20, as in "report%20one.doc". The %20 is actually a "code" for a space. The percent sign indicates the start of the code, and the two digits after the percent sign indicate the hexadecimal value of the character. 20 (hex) is the same as 32 (decimal), which is the ASCII value for a space.

Why is this happening? My guess is that somehow the file name is becoming "encoded" for use on the Web. This may sound strange, but the standards accepted for the Internet indicate that URLs cannot contain spaces in them. Thus, the standard allows for the "encoding" of URLs that must contain spaces and other forbidden characters. This encoding calls for a percent sign, followed by the hex value of the forbidden character—%20 in this case.

Word—from all the information I can find—does not do encoding of file names to remove spaces and other Web-forbidden characters in URLs. Even if you save a file, with spaces in the name, as a Web page, Word still includes spaces; it does not do encoding.

This means that the change must be occurring at the operating-system level. If this file is being saved on a network drive, then the change could be introduced by the network operating system. In such a case, you should check with your system administrator. First, however, save the file—within Word—to a local hard drive, such as C:. If the problem still exhibits itself, then it is not a network issue, but something on your system. This could include the addition of a unique device driver that encodes file names. Again, your system administrator may be able to shed light on why this is happening.

You should understand that if the encoding is happening at an operating-system level, it won't do any good to reinstall Word, since Word isn't the source of the problem. Instead, you will need to search for how your operating system is different from the operating system on a computer that does not exhibit the problem.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1319) applies to Microsoft Word 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Spell-Checking from the Keyboard

If you hate to take your hands from the keyboard, even to right-click on a word, you'll love the information in this tip. ...

Discover More

Creating an E-mail Message from the Current Document

In some earlier versions of Word, you could type an e-mail in your document and then have Word e-mail it, as a message, ...

Discover More

Word Tracks Changes to Changes

When you have Track Changes turned on for a document, Word remembers which editor made which changes. If this behavior ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (menu)

Opening Multiple Documents at Once

Word's Open dialog box provides many of the same file management functions as Windows Explorer does. One of the functions ...

Discover More

Creating Two Versions of the Same Document

You may often need to create two versions of the same document, one with everything and the other with a subset of what ...

Discover More

Saving Documents Faster

If you are using Word versions 97 through 2003, there's a setting you can make that will allow you to save your documents ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine minus 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.