POS Receipt Prints Random Characters — Code Page Fix Guide
Joe B.
Reviewed for technical accuracy
Specialities: ESC/POS code pages, Epson/Star/Bixolon, Windows & CUPS drivers, OPOS/JavaPOS, serial/USB/Ethernet receipt printers
Receipt prints random symbols — wrong character set / code page (CP437, CP850, PC858, Windows-1252), UTF-8 vs ESC/POS
Quick answer: the accepted fix
Accepted fix when a POS receipt prints random characters: match the **encoding** — set printer/driver **code page** (ESC t n) to the same table your POS uses (e.g., **PC858/Windows-1252**, CP850, CP852). If your stack is **UTF-8**, enable the driver’s UTF-8 mode (StarPRNT) or print **raster**. For serial printers, first align **baud/parity** to stop byte corruption.
Why POS printers show gibberish (ESC/POS vs Unicode, code pages, serial settings)
ESC/POS uses **character tables** (CP437/850/858/852/866/CP1252). When your POS emits **UTF-8** or a different legacy encoding, the printer maps bytes to the wrong glyphs — you see **mojibake**. Some drivers expose a **Text Encoding / Character code table** option (Epson APD, StarPRNT). On **RS-232**, mismatched baud or parity also scrambles bytes and looks like random characters.
How to verify: character set & driver are correct
Print a sample with **€, £, Å, Ö, č, š, ž** and barcode lines. In Windows drivers, select **PC858** or **Windows-1252** and reprint. In libraries, call the **set code page** method before sending text. If the preview is OK but receipts are wrong, try **raster/bitmap** mode or the driver’s **UTF-8** option.
Random characters — quick troubleshooting tips
Most cases are fixed by aligning the app’s encoding to the printer’s **ESC/POS code page**.
Quick path: pick the right **character table** in the driver (PC858/CP1252 for Western Europe), set the same table in your **escpos** library, or switch to **UTF-8/raster**. On serial printers, confirm **baud/parity** first. This resolves the majority of **garbled POS receipt** issues across Epson/Star/Bixolon.
Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.
Getting Started Is Easy
Ask for help, 24/7
Members enjoy round-the-clock access to 12,000+ verified Experts, including tech support, mechanics, vets, and more.
Expert will respond in minutes
We match you with an Expert who specializes in your situation. Talk, text, or chat — whichever you prefer.
Save time & money
No scheduling hassles or expensive consults. Membership can save you significant time and money each month.
FAQ
Why do POS receipts print random characters?
Because the **printer’s code page** (e.g., CP437) doesn’t match your app’s encoding (Windows-1252/UTF-8), or the **serial settings** corrupt bytes. Align the code page or use **UTF-8/raster** printing.
Which code page should I choose for € and Western accents?
Use **PC858 (Euro)** or **Windows-1252** in driver and library. For Central Europe pick **CP852**; for Nordic/Danish, **CP865/CP1252**; for Cyrillic, **CP866**.
Can I print UTF-8 directly?
Some **Star** models support **UTF-8** via StarPRNT. Otherwise, map UTF-8 to a supported table, or print **raster/bitmap** to preserve Unicode.
Logos/barcodes OK but text is gibberish — why?
Images/barcodes are binary graphics and unaffected by the text **code page**. Only text bytes are misinterpreted. Fix the **character table** or transcode your strings.
Sources
- Epson TM-T20X Technical Reference — character code tables & ESC t
- StarPRNT Command Spec — text encoding & UTF-8 support
- Flipdish — configuring POS receipt printer encoding
Filed under: Printer won’t print
Related articles
- Printer says “Offline” and won’t print — what should I check first?
- My printer “forgot” my Wi-Fi — the saved network is gone
- Printer Wi-Fi settings reset by itself — why did it forget my network?
- My printer keeps popping up “Set up Wi-Fi” again — why won’t it stay connected?
- Why does my printer need Wi-Fi setup again? It was working yesterday.
- My printer Wi-Fi setup keeps failing — what am I doing wrong?
- Printer Wi-Fi setup is confusing — why won’t it connect to my network?
- Printer Wi-Fi setup is too complicated — what do I check first without messing it up?