Search and Replace Unicode Text in Word Documents
A document library that spans several languages carries a hidden layer of problems. Two words can look identical on screen yet differ in how they are stored. A quotation mark can be straight in one file and curly in the next. A space before a percent sign can be a plain space in a French manual and a non-breaking space in the English original. Word's built-in Find and Replace works on one file at a time, so these inconsistencies survive for years.
WordPipe is a batch editor for Microsoft Word. It applies a saved list of search and replace pairs to every DOC, DOCX and RTF file in the folders you choose, including headers, footers and text boxes, and it writes a log of every change. This page explains how to search and replace Unicode text in Word documents reliably: accented characters, smart punctuation, invisible spaces, CJK and right-to-left scripts.
When to Use This
Character-level replacement is the right tool when the text itself is correct but its encoding or typography is not. Typical triggers are:
- Mixed accent encodings. Files from different authors store the same name with a composed é in one place and an e plus a combining accent in another, so searches and glossaries miss half the occurrences.
- Typography clean-up. A style guide requires curly quotes, or a localized edition requires the guillemets « » or the corner brackets 「 」 in place of straight quotes.
- Non-breaking spaces. French and Russian conventions need a fixed space before certain punctuation, and pasted web text often arrives with them in the wrong places.
- Terminology changes in other scripts. A company name, product term or regulatory phrase changes in Japanese, Arabic or Greek documents and must change in every file.
- Legacy conversions. Old documents contain substitute characters, such as a placeholder symbol where an old code page could not represent a letter.
If your job is plain English phrases, a different page fits better. For repeating one change across many files, read about automating text replacement in multiple Word files. For ordinary rule lists applied in bulk, see batch find and replace in Microsoft Word documents. Long lists of whole phrases are covered in mass replacing phrases in Word documents, and folder selection is explained in searching and replacing text across a Word documents folder. The WordPipe use case hub lists every scenario.
Step-by-Step Configuration
- Find out what is really in the file. Copy a problem character from a sample document and paste it into a text editor that shows code points. Note whether an accent is one character or two, and whether a space is U+0020 or U+00A0. Repeat for each language in the project.
- Enter one pair per variant. Paste the character directly into the search box rather than typing a lookalike from your keyboard. If a name appears in composed and decomposed forms, add both as separate pairs that map to your chosen standard form.
- Separate the languages. Select the German, Japanese and Arabic folders in different runs. A pair meant for one script should not be able to reach files in another.
- Choose document parts. Tick body text, headers, footers, text boxes and hyperlinks. Translated footers and cover pages are often forgotten.
- Set matching options. Use whole-word matching for short terms. For CJK text, which has no spaces between words, whole-word matching offers little protection, so make search strings long enough to be unambiguous.
- Back up and trial. Copy the original folders, run about twenty files per language, and open the results in Word with the correct fonts installed to see whether glyphs display properly.
- Run and save. Process the full set, store the log and keep the pair list for the next release of the documents.
Example pairs
| Situation | Search | Replace |
|---|---|---|
| Straight to curly quote | "Quality" | “Quality” |
| Decomposed accent to composed | Cafe + combining acute | Café |
| Space before percent sign | 20 % | 20 % |
| Renamed term in Japanese | 旧製品名 | 新製品名 |
In the table, the non-breaking space is shown as an HTML entity because it cannot be told apart visually. In WordPipe, paste the actual character.
Original Example: A Multilingual Safety Manual at Nordvik Instruments
Nordvik Instruments, a maker of laboratory scales, kept its safety manuals in English, German, French, Polish and Japanese: 1,260 Word files across five folders. A review before an audit found three defects. The brand name "Nordvik" appeared as "Nordvík" in some Polish files because of an auto-correct error. The French files used a plain space before colons, semicolons and percent signs. The Japanese files named the product line "NV-旧シリーズ" after the line had been renamed "NV-新シリーズ".
The documentation lead built eleven pairs: the wrong brand spelling in two encodings, eight French punctuation pairs that inserted a non-breaking space before each mark, and the Japanese line name. The Polish and French pairs were run only against their own folders. Before, a French line read "Température maximale : 40 %" with ordinary spaces and could wrap so the percent sign started a new line. After, the spaces were fixed and the line stayed together. The Japanese heading changed from "NV-旧シリーズ 取扱説明書" to "NV-新シリーズ 取扱説明書".
The trial on 100 files revealed that the Polish brand pair had also altered a quoted supplier name, "Nordvík AB", in two files, so those two were moved out of scope. The full run covered 1,238 files in about 26 minutes and logged 5,914 replacements. A reviewer who checked 60 pages in Word found no broken glyphs. Manual correction had been estimated at 55 hours. The job took roughly 5 hours including setup, the trial and review, and the log was filed with the audit pack.
Common Pitfalls
- Lookalike characters. A Cyrillic "а" and a Latin "a" are visually identical. Paste from the source file, do not retype.
- Composed versus decomposed forms. If a pair seems to do nothing, the document probably stores the accent in the other form. Check the code points.
- Intentional characters. Straight quotes in code samples and non-breaking spaces in tables are often deliberate. Use a trial run to find them.
- Missing fonts on the review machine. A box or question mark in the result may be a font problem, not a replacement error. Install the language fonts first.
- Right-to-left fragments. Numbers and Latin product names inside Arabic or Hebrew text are left-to-right runs, and a replacement that changes their length or neighbours can alter how the line is arranged. Review those lines by eye.
- One list for every language. A short Latin string can occur inside words in another language. Keep language-specific lists and folders apart.
- No backup. Keep an untouched copy of the originals until a reviewer has signed off.
FAQ
Can WordPipe replace text in non-Latin scripts such as Chinese, Arabic or Cyrillic?
Yes. Enter the search and replace strings in the script used by the document. WordPipe works on the Unicode text stored in DOC, DOCX and RTF files, so the same pair list approach applies to Latin, Cyrillic, Greek, Arabic, Hebrew and CJK text.
Why does a word with an accent not match even though it looks identical?
An accented letter can be stored as one composed character or as a base letter plus a combining mark. They look the same but are different strings, so add a pair for each form that appears in your files.
Can I replace curly quotes and non-breaking spaces?
Yes. Paste the exact character into the search box. Treat each quote style and each type of space as its own pair, and run a trial first because these characters are often used on purpose.
Will right-to-left text and fonts survive the replacement?
Paragraph direction and character formatting are kept. Check a trial file in Word, because a replacement that mixes left-to-right fragments such as numbers into right-to-left text can change how a line reads.
Related Use Cases
- Automate text replacement in multiple Word files: repeat one set of edits across many documents.
- Batch find and replace in Microsoft Word documents: run ordered rule lists over whole collections.
- Mass replace phrases in Word documents: update long lists of wording and terminology.
- Search and replace text in a Word documents folder: choose and limit the folders a job touches.
- All WordPipe use cases: the full list of batch editing scenarios.
Start Using WordPipe Today
Bring your multilingual library into line: search and replace Unicode text in Word documents with a free trial.