Skip to content
PDF Accessibility

Fix the “Character encoding failed” PDF error

Some fonts in the PDF do not map their glyphs to Unicode, so the text cannot be reliably extracted, searched or spoken.

What does Character encoding failed mean in a PDF?

It means the checker found text whose glyphs cannot be mapped to Unicode characters, usually because a font lacks a ToUnicode map or uses a custom encoding. Screen readers then read wrong letters or nothing. The most reliable fix is to re-export from the source with standard embedded fonts; otherwise the text needs a Unicode mapping or ActualText added.

Automatic fix: partlyOur fixer resolves most cases; some need a quick human check in the review editor.· WCAG 1.3.1 Info and Relationships, WCAG 1.1.1 Non-text Content, PDF/UA-1 (ISO 14289-1) 7.21, Matterhorn 31

How to fix character encoding manually

  1. Identify the fonts. In Acrobat Pro, open File > Properties > Fonts to see which fonts are used and whether they are embedded. Note symbol or Type 3 fonts.
  2. Re-export from the source if you can. Replace decorative or symbol fonts with standard Unicode fonts in Word, InDesign or your layout app, then export again with tags.
  3. Avoid print-to-PDF. Use the app's own export or Save As PDF rather than a virtual printer, which often strips Unicode tables.
  4. Add ActualText for stubborn spans. For a few problem characters, select the text's tag in the Tags panel, open Properties and enter the correct characters as Actual Text.
  5. Verify by copying text. Copy a paragraph and paste it into a plain text editor. If it pastes correctly, a screen reader can usually read it. Then re-run the checker.

What the message means

A PDF does not store letters the way a text file does. It stores glyph codes for each font, plus (ideally) a table that says which Unicode character each glyph represents. That table is usually the font's ToUnicode map. When the map is missing or incomplete, software can draw the text correctly on screen but cannot tell what the text says.

The checker fails this rule when it finds fonts that it cannot map to Unicode. PDF/UA-1 requires that all text be mappable to Unicode and that fonts meet the font requirements in its section 7.21; Matterhorn checkpoint 31 covers these font tests.

Who it affects

Screen reader users hear strings of random letters, question marks, or silence. Braille display users get the same garbage. Text-to-speech tools for people with dyslexia fail, and copy, paste and search stop working for everyone. Because the page looks fine visually, authors often do not notice until a user complains.

Common causes

Encoding problems typically come from:

  • Symbol, dingbat or decorative fonts with custom encodings.
  • Old Type 3 fonts generated by some design and math tools.
  • Fonts subset by a print driver that dropped the Unicode table.
  • PDFs converted from PostScript or produced by legacy reporting software.
  • Ligatures (fi, fl) and special characters that have no mapping.

What our fixer can and cannot do

This is honestly one of the harder errors. Our fixer rebuilds Unicode mappings where the font's glyph names or standard encodings reveal the intended characters, which covers many ligature and subset cases. Where it cannot infer the characters, it compares the rendered glyphs with OCR and adds ActualText to the affected spans, then lists those spans in the review editor because OCR can misread symbols and math.

If a document is built mostly from unmappable fonts, the cleanest result usually comes from re-exporting the source with standard fonts. We mark the rule partly automatic for that reason, and the before/after report tells you which spans still need attention.

Sources

This page is general information, not legal advice. Automated checks cannot prove full compliance; some requirements need human review.

Frequently asked questions

The text looks fine. Why does it fail?

Appearance and meaning are stored separately in a PDF. The glyphs draw correctly, but without a Unicode map software cannot tell which letters they are.

Is this the same as fonts not being embedded?

No. Embedding is about including the font program. Encoding is about mapping glyphs to characters. A font can be embedded and still fail encoding.

Will OCR fix it?

OCR can supply text for unmappable spans, but it may misread symbols or formulas, so results need review.

Can the automatic fixer always resolve it?

Not always. It resolves many cases, and flags the rest. Re-exporting with standard fonts is the most reliable fix for heavily affected files.