PDF Lover

Why a text file turns into question marks

A text file stores numbers, not letters. The encoding says which number means which letter, and a .txt file does not record it.

What we tested

We converted the same accented text saved in different encodings.

File saved asResult
UTF-8Greek, accents, currency signs and curly quotes all correct
UTF-8 with byte order markAll correct
Windows-1252Accents, currency signs and curly quotes replaced by a placeholder symbol
Text with accented letters replaced by placeholder symbols
The Windows-1252 file after conversion.

Plain A to Z, digits and basic punctuation are encoded the same way in both, which is why an English file can look fine until the first accent or curly quote.

Re-save the file as UTF-8

If the text already looks broken in the editor, reopen it with the original encoding first and only then save it as UTF-8. Saving broken text keeps it broken.

CSV behaves differently

Do not assume the same rule applies to CSV files: our converter garbled UTF-8 CSV files too. See the CSV guide.

Layout of plain text

A text file has no fonts, margins or headings, so the converter chooses them. Long lines wrap at the page edge, and tables drawn with spaces only line up in a fixed-width font. If the appearance matters, paste the text into a word processor, format it, and convert that document.

Telling which encoding you have

Most editors show it: VS Code in the status bar, Notepad at the bottom of the window. A clue without any tool: if accents look right in your editor but wrong in the PDF, the file is probably in an older Windows encoding that your editor recognised and the converter did not.

Line endings and tabs

Text from old systems may use different characters to end a line. If the PDF shows everything as one long paragraph, open the file in a modern editor and save it again. Tabs are drawn at fixed positions, so columns aligned with tabs can drift when values have different lengths; for real columns use a spreadsheet.

Convert now