Solution
The file was fine, but the printer opened it with a different encoding from the one used to save it. The school office saved it in UTF-8, which writes “ñ” and accented vowels with two numbers, and the printer’s computer displayed each of those numbers as a separate letter.
What happened?
A computer does not store letters but numbers. The encoding is the table that says which letter each number stands for. Letters of the English alphabet have the same number in the most common tables, which is why “Marta Gil” came out fine. “Ñ” and accented vowels, on the other hand, change from one table to another. This is what happened:
The school’s application saved “Begoña” in UTF-8, which writes “ñ” with two numbers: C3 and B1.
At the printer, they double-clicked the CSV to open it in Excel, which read it with another table, Windows-1252, where each number is one letter.
In that table, C3 is “Ô and B1 is “±”. That is why “ñ” became “ñ”, and “Begoña”, “Begoña”.
The teacher’s editor opened the file in UTF-8, the same table it was saved with, which is why the names looked fine there.
Nobody had misspelt the names: the mistake was in the table used to read them.
How could it be fixed and prevented?
To fix it , the printer needed to open the original file specifying that it is in UTF-8. In Excel, this is done from Data > Get Data > From File > From Text/CSV , choosing UTF-8 as the file origin. If someone had already saved the CSV with the strange symbols, they had to ask the school office for another copy.
To stop it from happening again , these measures helped:
Export as UTF-8 with BOM, a mark at the start of the file that indicates its encoding. According to Microsoft, Excel then opens it correctly.
Do not double-click CSV files; import them specifying their encoding instead.
Check a proof before printing, looking for symbols such as “Ô.
‹
Case 15/21
›
A project by Eniun