Printer troubleshooting technician providing live chat help

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

Technician avatar Technician
We’ll stop the **gibberish** and print clean ASCII/extended characters again. Quick triage:
• Printer model & interface (USB, Serial/RS-232, Ethernet).
• POS/app/framework (Square-like, custom app, web POS, escpos-php/.NET, JavaPOS/OPOS).
• OS/driver stack (Windows driver like **Epson APD** / **StarPRNT**, or **CUPS** on Linux/macOS).
• Examples of broken characters (€, £, č/š/ž, æ/ø/å) — these point to the **code page**: CP437, CP850, **PC858 (Euro)**, **Windows-1252**, or UTF-8.
Symptoms such as **random characters**, inverted logos, or “????” are almost always **wrong ESC/POS code page** or **serial settings**.
Customer
Windows 11 POS app, **Epson TM-T20** over USB. Receipts show random symbols and “€” prints as a capital D with a stroke. Barcodes cut fine, but text is garbage.
Technician avatar Technician
Classic **code page mismatch**. ESC/POS is not Unicode by default — it expects a selected **character table** (aka code page). Your POS likely outputs **Windows-1252** or UTF-8, but the printer is on **CP437**. Result: mojibake (random glyphs) and wrong symbols for €, £, Á/Ö, etc.
Fix plan:
1) Force the printer’s **ESC t n** code page to a table that matches your app (often **PC858/Windows-1252**).
2) In Windows, install/repair **vendor driver** (Epson Advanced Printer Driver) and set **Character code table** in the driver.
3) If your app is UTF-8 only, switch to **raster/bitmap** mode or enable the vendor’s **UTF-8** support where available (StarPRNT).
4) If using Serial, confirm **baud/parity** — wrong serial settings also produce random characters.
Customer
We print via a Windows desktop app. Where do I flip the code page in the driver? I also have an older Star printer in another store.
Technician avatar Technician
Windows (Epson APD / StarPRNT): set the correct character table
• Control Panel → Devices and Printers → right-click your receipt printer → **Printing preferences** / **Advanced**.
• Epson APD: open **Device Settings → Printing Defaults → Character code table** → pick **PC858 (Euro)** or **Windows-1252** depending on your locale. Apply to **both** Preferences and Defaults.
• StarPRNT: open **StarPRNT → Device Settings → Text Encoding**. Choose **Windows-1252** or switch **UTF-8** on (if your app sends UTF-8).
• Print a test receipt from the driver and from your POS. If €/accented letters look correct, the code page now matches.
Customer
Our web POS uses **escpos-php** on Linux in another shop. Same problem with Nordic letters. Driverless via CUPS.
Technician avatar Technician
Linux/CUPS & libraries (ESC/POS raw)
• Use **escpos-php** / **ESC-POS .NET** APIs to set the **code page** before printing (e.g., `setCharacterCodeTable(‘PC858’)`, `selectCharacterTable(17)` etc.).
• Ensure your app **transcodes** to that code page (e.g., from UTF-8 to CP858) before sending bytes; otherwise you’ll get “?” or random symbols.
• Alternative: print in **raster/graphics** mode (render the receipt to an image/PDF), which preserves **UTF-8** without relying on code pages.
• In **CUPS**, use the vendor PPD/driver if available (Epson/Star) and set **Character set** in printer options; avoid generic text queues for accented output.
Customer
What about serial printers? One old Bixolon on COM1 spits garbage until we power-cycle it.
Technician avatar Technician
Serial/RS-232 also causes “random characters” if comms don’t match
• Match **baud rate**, **data bits**, **parity**, **stop bits**, and **flow control** in the printer DIP-switch/utility and the COM port driver.
• Wrong serial params mangle bytes, which looks like scrambled ESC/POS commands (paper cuts fail, images corrupt). Fix comms first, then code page.
Customer
Our app is 100% **UTF-8**. We can’t easily change it. Any way to print UTF-8 reliably?
Technician avatar Technician
A few paths:
1) **StarPRNT UTF-8**: many Star models accept UTF-8 with proper driver settings — enable it in **Device Settings → Text Encoding**.
2) For Epson ESC/POS, map UTF-8 → a supported code page (PC858/CP850/CP1252, CP852 for Central Europe, CP866 for Cyrillic).
3) Print **raster**: render the receipt as an image (PNG/bitmap) and send via graphics mode — slower but Unicode-safe.
4) Ensure your library’s **transliterator** replaces unsupported glyphs gracefully (e.g., smart quotes → straight quotes).
Customer
Can you give me a step-by-step to test and lock the fix? We need receipts with €, č/š/ž and barcodes.
Technician avatar Technician
Practical checklist — “random characters” to clean output
• **Identify target encoding** from your POS/app (Windows-1252, CP858/CP850, CP852, CP866, ISO-8859-1, etc.).
• **Set code page on the printer/driver** (Epson APD, StarPRNT; or ESC command **ESC t n** in your library).
• **Transcode** your strings to that code page before sending; verify with a sample containing €, £, Á/Ö/č/š/ž.
• **Test barcodes/logos**: if text is fixed but images break, you still have serial/USB issues or mixed text/graphics mode.
• If you must keep UTF-8 end-to-end, switch to **raster/graphics** printing or Star’s **UTF-8** mode.
• Save settings; print 3 receipts (plain text, mixed text+logo, barcode) to confirm stability.
Customer
Done. After setting PC858/Windows-1252 in the driver and library, receipts are readable and € prints correctly. Thanks!
Technician avatar Technician
Summary: Random symbols on receipts = **wrong ESC/POS code page** or **serial mismatch**. Set the driver/printer to **PC858/Windows-1252** (or your locale’s table), transcode app strings, or use **UTF-8/raster** where supported. Need help mapping your locale to the correct table? Open the chat — we’ll match code page and driver in minutes.

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

Matt Verified Icon
Matt ● replies in < 1 min
Technician Expert
⭐⭐⭐⭐⭐ Trusted by 27,000+ customers
Avatar
Alex · Expert's Assistant