Manuscript preparation
Why Smart Quotes Turn into Question Marks During File Conversions
In April 1998, the Unicode Consortium published a mapping table for a Microsoft character set called code page 1252, the default for Windows systems in English and most Western European languages. Four lines of that table explain a problem that still reaches authors’ inboxes. Byte 0x91 maps to U+2018 LEFT SINGLE QUOTATION MARK, 0x92 to U+2019 RIGHT SINGLE QUOTATION MARK, 0x93 to U+201C LEFT DOUBLE QUOTATION MARK, and 0x94 to U+201D RIGHT DOUBLE QUOTATION MARK.1 The international standard on which code page 1252 was based, ISO/IEC 8859-1, assigns those same four byte values to invisible control codes.2 Two systems that agreed on nearly every letter disagreed about the curly quotation marks, and that disagreement is one of the main reasons smart quotes turn into question marks, boxes, or strings such as “’” when a manuscript moves from one program to another.
This article explains the mechanism, distinguishes the different symptoms (each points to a different cause), and sets out the practical steps that keep typographic quotation marks intact from draft to finished book.
A character encoding is a lookup table between bytes and characters
Every text file is stored as a sequence of numbers. A character encoding is the agreement that says which number stands for which character. The W3C’s introduction to the subject puts it plainly: “A character encoding is the key that maps a particular byte or sequence of bytes to particular characters,” and “If the wrong encoding is applied to the bytes in memory, the result will be unintelligible text.”3 Microsoft’s Word documentation uses similar language, describing an encoding standard as “a numbering scheme that assigns each text character in a character set to a numeric value.”4
For plain English letters, digits, and basic punctuation, nearly all modern encodings agree, because they inherit the same assignments from ASCII. Straight quotation marks (the vertical ” and ’) belong to that shared core. Curly quotation marks, apostrophes, en dashes, ellipses, and accented letters do not. Each encoding places them differently, and some older encodings do not include them at all. A file that contains only straight quotes and unaccented letters can therefore be opened under the wrong encoding without visible harm, while a file with curly quotes will show the error immediately.
This is why the problem appears to single out quotation marks. Word processors convert straight quotes to curly ones automatically by default; Microsoft’s help page describes the AutoFormat As You Type option that will “automatically change straight quotation marks” as the author types.5 A typical novel contains thousands of curly quotes and apostrophes and comparatively few other characters outside the ASCII core, so the quotes are where an encoding mismatch becomes visible first.
Three encodings account for most conversion failures
Three encodings appear repeatedly in problems with book files.
The first is Windows-1252, the code page described in the 1998 table. It is a single-byte encoding: each character occupies exactly one byte, and the curly quotes sit at 0x91 through 0x94. Its table also places the en dash at 0x96, the em dash at 0x97, and the horizontal ellipsis at 0x85, and it leaves five byte values, including 0x81, 0x8D, 0x8F, 0x90, and 0x9D, undefined.6 Older Windows software that saves “ANSI” or “plain text” files usually means this encoding.
The second is ISO/IEC 8859-1, often called Latin-1. Its letters match Windows-1252 in most positions, but the Unicode Consortium’s mapping table labels every value from 0x80 through 0x9F as <control>.7 A program that reads a Windows-1252 file as true Latin-1 sees the curly quotes as control codes, which have no visible form. Web browsers long ago adopted a practical response: the WHATWG Encoding Standard, which browsers implement, treats the labels “iso-8859-1,” “latin1,” “us-ascii,” and “ascii” as synonyms for windows-1252.8 Software outside the browser does not always follow the same convention.
The third is UTF-8, an encoding of the full Unicode character set in which characters outside ASCII occupy two to four bytes. The right single quotation mark, U+2019, is stored in UTF-8 as the three bytes E2 80 99. UTF-8 is now the expected default. The WHATWG standard states that “New protocols and formats, as well as existing formats deployed in new contexts, must use the UTF-8 encoding exclusively,” and the W3C advises that content developers “should use the UTF-8 character encoding, unless there are very special reasons for using something else.”910
Almost every quotation-mark failure is a disagreement between two of these three encodings: a file written in one and read as another.
Each symptom identifies a different failure
The visible result of an encoding error tells an experienced production editor what went wrong. Four symptoms are common, and they are not interchangeable.
A plain question mark means a character could not be saved
A literal question mark (?) in place of a curly quote usually means that a program tried to save text in an encoding that has no slot for the character and substituted a placeholder. Python’s documentation describes the standard “replace” behavior precisely: “On encoding, use ? (ASCII character).”11 Saving curly quotes into pure ASCII, which has no curly quotes, produces exactly this result.
Microsoft Word warns about the same situation when a document is saved as plain text in a limited encoding. Its help page states that “Text marked in red will not save correctly in the chosen encoding,” and that if character substitution is allowed, Word “replaces a character that cannot be displayed with the closest equivalent character in the encoding that you chose.”12 The question mark is the information lost at the moment of saving. It cannot be reversed by opening the file differently, because the original character is no longer in the file.
A diamond with a question mark means invalid bytes were read
A black diamond containing a question mark (�) is a different character, U+FFFD REPLACEMENT CHARACTER. It appears when a program reading the file finds bytes that are not valid in the encoding it expects. The WHATWG standard’s default decoding mode outputs U+FFFD in place of malformed input, and Python’s documentation says that on decoding the “replace” handler uses “� (U+FFFD, the official REPLACEMENT CHARACTER).”1314
The usual cause is a Windows-1252 file read as UTF-8. The single byte 0x92, a curly apostrophe in Windows-1252, is not a valid sequence on its own in UTF-8, so a UTF-8 reader replaces it. As with the plain question mark, the original character is gone from the output, but in this case it may still exist in the source file, which can be reopened with the correct encoding.
“’” means UTF-8 was read as Windows-1252
The opposite mistake produces a recognizable string of three characters. When the UTF-8 bytes E2 80 99 for a right single quotation mark are read as Windows-1252, the code page table maps E2 to “â,” 80 to the euro sign “€,” and 99 to the trade mark sign “™.”15 The consultant John D. Cook described the pattern in a January 2024 post: “a single quote (U+2019) encoded in UTF-8 has been interpreted as the Windows-1252 text ’.”16 Opening quotation marks produce ““,” while the closing double quotation mark, whose last byte is 9D, ends in a position the Windows-1252 table leaves undefined, so its third character may be dropped, shown as a box, or replaced, depending on the software.17
This symptom, often called mojibake, is the most recoverable of the four. Every original byte is still present; it has simply been displayed through the wrong table. Reopening the source with the correct encoding restores the text. Once the garbled characters have been saved as new text, however, a second conversion is needed to repair them, and automated repair is error-prone in long documents.
Silent disappearance means errors were ignored
The least visible failure is the quotation mark that vanishes without a trace. In an August 2008 post on Microsoft’s The Old New Thing blog, Raymond Chen analyzed a developer’s complaint that apostrophes were missing from imported text. The file was in Windows-1252, the program read it as UTF-8, and “the default behavior for the Encoding.UTF8Encoding encoding is to ignore invalid byte sequences,” so the characters were discarded; moreover, “StreamReader does not raise an exception when incorrectly-encoded text is encountered.”18 Python offers a similar “ignore” handler that will “Ignore the malformed data and continue without further notice.”19
For a manuscript, silent loss is the most dangerous outcome, because a dropped apostrophe can turn “it’s” into “its” or “we’ll” into “well” and still look plausible to a reader skimming the proof.
Boxes point to fonts rather than encodings
A fifth symptom, an empty rectangle or a box containing a question mark, often has a different cause. The character may have been encoded and decoded correctly, but the font in use has no glyph for it. The Unicode Consortium’s guidance on unsupported characters states that such characters “should be displayed with one or more generic glyphs, often referred to as ‘missing glyphs’ or a ‘.notdef glyph’.”20 Amazon’s “Guide to Kindle Content Quality,” as of November 2026, lists “Unsupported characters” among the problems it checks, describing them as “strings of jumbled characters or boxed question marks.”21
Curly quotes are present in nearly every text font, so a box in their place more often indicates an encoding problem that produced an unusual character, or a decorative font with a limited character set. Word’s help page notes that if “text appears garbled or as question marks or boxes,” the program may not have detected the file’s encoding correctly, which shows how closely the two problems resemble each other in practice.22
Conversions that pass through plain text are the usual point of failure
A Word .docx file stores its text as Unicode, so moving a manuscript between modern word processors in their native formats rarely damages quotation marks. The risk arises when text leaves a rich format and passes through a plain-text stage, where an encoding must be chosen and may be chosen wrongly. Typical points include saving as .txt for an ebook conversion tool, exporting to a comma-separated file for a database or spreadsheet, pasting through an email client or web form, generating HTML from a manuscript, and importing a text file into a layout program.
Word’s own plain-text dialog shows how the choice is made. Microsoft’s help page explains that selecting “Windows (Default)” applies the system’s default encoding, while “To avoid problems with encoding and decoding text files, you can save files with Unicode encoding.”23 On an English-language Windows computer, the system default is typically Windows-1252, so a plain-text file saved with the default and later read by a tool that assumes UTF-8 will produce replacement characters or lost apostrophes.
The reverse can happen on import. If a layout program or converter assumes Windows-1252 and receives UTF-8, every curly quote becomes a three-character mojibake sequence. The byte order mark, which some programs place at the start of UTF-8 files as a signature, can help a reader detect UTF-8 but causes other problems; Python’s documentation notes that “In UTF-8, the use of the BOM is discouraged and should generally be avoided.”24
Prevention depends on naming the encoding at every handoff
The common element in every case above is that one program guessed what another program meant. Raymond Chen’s recommendation to developers, “decide on an encoding and to specify that encoding when creating the StreamReader,” applies equally to authors and their production workflows.25 In practical terms, an author can take the following steps:
- Keep the master manuscript in a native format (.docx, .odt, or a Scrivener project) rather than in plain text, since those formats store Unicode internally.
- When a plain-text or HTML export is required, choose UTF-8 explicitly in the save dialog rather than accepting the system default.26
- When opening or importing a text file, select its encoding manually if the program offers the choice, rather than relying on automatic detection.
- After every conversion, search the output for “—, “�”, and stray question marks next to letters, which together catch most of the failures described above.
- Check a sample of apostrophes in contractions and possessives in the final proof, because silently dropped characters do not leave a visible mark.27
- Treat any file that arrives from a collaborator in plain text as of unknown encoding until confirmed.
These steps do not require technical knowledge of encodings beyond recognizing the symptoms. They do require an author or editor to know where in the workflow text passes through plain text, which is usually less obvious than it seems. Online submission forms, metadata fields at retailers, and email bodies can each act as a hidden plain-text stage.
Straight quotes are not a reliable workaround
Some authors respond to repeated problems by turning off smart quotes entirely and submitting a manuscript with only straight quotation marks. Microsoft’s support page explains how to clear the “Straight quotes” with “smart quotes” option under AutoFormat As You Type.28 Straight quotes do survive almost any encoding mismatch, because they belong to the ASCII core.
The trade-off is typographic. Trade books are typeset with curly quotes as a matter of convention, so straight quotes must eventually be converted, either by the typesetter or by a conversion tool that infers direction from context. Automated conversion handles most cases but has well-known difficulty with apostrophes at the start of words, such as abbreviated years or dropped letters in dialect, which a simple rule will often turn into opening quotation marks. Avoiding the encoding problem by abandoning curly quotes therefore exchanges one class of error for another. The more reliable course is to keep curly quotes and control the encoding at each handoff.
Whether the problem will disappear remains an open question
The standards bodies have largely settled the question of which encoding new content should use. The WHATWG requirement that new formats use “UTF-8 encoding exclusively” and the W3C’s recommendation to use UTF-8 “unless there are very special reasons for using something else” leave little room for ambiguity.2930 If every program an author used defaulted to UTF-8 and labeled its output accordingly, quotation marks would no longer turn into question marks.
The difficulty lies with the long tail of software that predates or ignores those recommendations: plain-text defaults tied to system code pages, older conversion tools, database exports, and services that strip encoding labels in transit. The 1998 code page table is still being applied to text written decades after it was published.31 How quickly that legacy software disappears from authors’ workflows is not something the standards themselves can determine. Until it does, the most dependable safeguard is the one available to any author: knowing what each symptom means, and checking for it after every conversion.
Related articles on selfpublishingtool.com
- Hunting Gremlins: Invisible Unicode Characters That Break Typesetting Software
- How to Clean Up a Manuscript Written Across Google Docs, Scrivener, and Word
- How to Prepare a Word Manuscript for Professional Typesetting
- What Makes a PDF Print-Ready?
- How to Format Text Messages, Emails, and Chat Logs Inside a Novel
Platform rules, fees and laws change. Facts in this guide are dated to when they were checked; confirm current terms with the platform or authority before relying on them. Nothing here is legal, tax or financial advice.