Greek text and encoding
What to do when Greek text arrives in the shop as odd characters.
The symptom
Product names or descriptions show question marks or unreadable characters instead of Greek letters. Or the run stops with erp_encoding_mismatch.
The cause
Text travels as bytes, and the encoding says which letter each byte is. Greek ERPs usually answer in one of three:
- UTF-8, the modern and most common one.
- Windows-1253, the Greek one of Windows.
- ISO-8859-7, the older Greek standard.
If the service reads with the wrong encoding, the letters are garbled.
The setting
Under Connections, “Data formats” of the ERP connection, section “Text encoding”:
- Automatic: the service recognises the encoding from the answer. It is the default and suits most.
- UTF-8, Windows-1253 or ISO-8859-7: if you know what your ERP sends, set it explicitly.
If you set an encoding explicitly and the ERP answers in another, the run stops instead of writing garbled text to the shop.
Check before you save
Take a sample of rows from the same page and see whether Greek text reads correctly. In the setup guide, the same sample is at the step “What syncs”.
What was already written wrongly
After you save, the next run of every module reads all items again and corrects the texts in the shop.