What is character encoding?
Character encoding is the agreement that links the numbers stored in a file to the letters you read on screen. A computer stores only numbers, so a table must say that one number means a, another means é and another means a Japanese character. If the program reading the file uses a different table from the one that wrote it, the letters come out wrong. That is the reason a name such as José can appear as strange symbols, and why plain text files cause this more often than rich documents.
Common encodings
UTF-8 is today's standard. It covers every writing system in one table and is used by most websites and modern programs. Older tables, such as the Western European one or the Windows one, hold only a few hundred symbols and belong to a particular region. A file saved in an older table and opened as UTF-8, or the other way round, shows the damaged letters. Spreadsheet exports in comma separated form are a frequent case.
How to avoid trouble
Save text and data files in UTF-8 whenever you can, and say so if the program offers a choice. If accents already look wrong, reopen the file and pick the table that matches how it was saved before converting it. Check names, currency signs and quotation marks first, because they are the characters that break soonest. A quick look at the finished PDF confirms that every symbol survived.
Using AuraDoc for it
The AuraDoc tool for turning a text file into a PDF and the tool for a comma separated file both create a document from your data, and the tool for extracting text from a PDF returns the words as plain text again. Each one leaves the original file as it was.
Tools that use this
Guides that put it into practice
- Turn a text file into a PDFStep by step: convert a plain text file into A4 pages, add page numbers and compress the result for email or upload.
- Turn a CSV export into a PDFStep by step: check the file and its separator, convert the CSV into a PDF table, add page numbers and compress the result before you share it.
Common questions
- What is UTF-8?
- It is a way of storing text that can represent letters from every language, including accents, Arabic, Chinese and symbols, in a single table.
- Why do I see question marks instead of letters?
- The file was written with one table and read with another, or the font lacks the symbol. Reopening it with the right encoding usually fixes this.
- Does a PDF have this problem?
- A finished PDF carries its own fonts and characters, so it looks the same everywhere. The risk lies in the text file you convert.