What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If Unicode text is wrong in a wkhtmltopdf PDF, first determine whether the input is being decoded with the wrong character encoding or whether the renderer cannot find a font containing the affected glyphs. UTF-8 fixes an encoding mismatch; it does not supply missing fonts. Check the actual input bytes and charset for mojibake, and check font coverage and the wkhtmltopdf runtime for blank spaces or square boxes affecting only certain characters.

The steps below target wkhtmltopdf 0.12.6, the stable series identified by the project’s downloads information as released June 11, 2020. The project repository is archived, so this guide does not assume a newer official release or ongoing upstream maintenance.

First identify what “broken” means

Look closely at the generated PDF and classify the failure before changing settings. Different symptoms point to different causes:

What you see First thing to investigate
Readable text has turned into unrelated or garbled characters (mojibake). Whether the input’s actual bytes, declared charset, HTTP response charset, and renderer default agree.
Some characters are blank or shown as squares, but surrounding text is correct. Whether a font visible to wkhtmltopdf contains those particular glyphs, and whether font fallback works in that runtime.
All or nearly all non-ASCII characters fail. Check the input encoding first, then confirm that the runtime has suitable fonts if the characters are absent rather than garbled.

These are diagnostic clues, not guarantees. A CentOS 7 report involving wkhtmltopdf 0.12.3 described missing Unicode characters, while a Windows 10 report involving 0.12.5 described characters visible in a browser but missing from the PDF. Those individual reports illustrate different failure patterns; they do not establish a universal fix for a distribution or operating system.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
  • EDIT text, images & designs in PDF documents. ORGANIZE PDFs. Convert PDFs to Word, Excel & ePub.
  • READ and Comment PDFs – Intuitive reading modes & document commenting and mark up.
  • CREATE, COMBINE, SCAN and COMPRESS PDFs
  • FILL forms & Digitally Sign PDFs. PROTECT and Encrypt PDFs
  • LIFETIME License for 1 Windows PC or Laptop. 5GB MobiDrive Cloud Storage Included.

Check the encoding of the source

A charset declaration describes how bytes should be interpreted. It cannot convert incorrectly encoded bytes into the intended text by itself. Make sure the file’s actual encoding matches its HTML declaration. If the source is fetched from a URL, inspect both the response charset and the HTML declaration. With local-file input, inspect the file’s actual bytes and metadata rather than assuming the editor’s display proves the encoding.

Declare UTF-8 in an HTML file

For an HTML file that is actually saved as UTF-8, put a charset declaration near the beginning of the document’s head:

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Unicode test</title>
</head>
<body>
  <p>Latin: café — Test characters: 日本語 العربية Ελληνικά</p>
</body>
</html>

Replace the sample characters with the exact text that fails in your document. Saving the file in UTF-8 is part of this check: adding the meta tag to a file whose bytes use a different encoding does not make those bytes UTF-8.

Set wkhtmltopdf’s default encoding when needed

The project’s settings documentation names the default as web.defaultEncoding and gives utf-8 as an example. In command-line use, the corresponding option is --encoding. Use it when the content does not correctly specify its encoding and UTF-8 really is the encoding of the input:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
  • Edit PDFs with Ease. Modify text, images, and layouts directly within your PDF documents.
  • Convert & Organize. Export PDFs to Word, Excel, or ePub, and organize files with ease.
  • Read & Annotate. Enjoy intuitive reading modes and powerful tools to comment, highlight, and mark up PDFs.
  • Create & Manage PDFs. Create new PDFs, combine multiple files, scan documents, and compress for easy sharing.
  • Fill & Sign Forms. Complete forms and digitally sign documents with secure e-signature tools.
wkhtmltopdf --encoding utf-8 input.html output.pdf

For URL input, substitute the URL for input.html. The option sets a default for content lacking a proper declaration; it should not be treated as a universal repair or as a way to change the actual bytes. An archived Ubuntu issue report described Chinese text remaining wrong despite UTF-8 command-line and HTML declarations. That report was labeled invalid, but it is a useful reminder to check the source and other causes rather than repeating the same setting.

Check whether the renderer has the required glyphs

If the text is otherwise correct and only particular characters, symbols, or scripts disappear or become boxes, investigate font coverage. UTF-8 can represent a character without ensuring that the selected font contains its glyph. Set an explicit font that covers the affected characters when needed, and make that font available to the process running wkhtmltopdf.

A browser on a developer’s workstation may display characters by selecting fallback fonts that wkhtmltopdf does not find or select in the same way. A Windows 10 / wkhtmltopdf 0.12.5 issue report described a browser using Yu Gothic UI, Nirmala UI, and SimSun alongside the requested font. This is a reported setup, not a statement about all Windows installations.

Identify the script before choosing a font

Make a small sample with the exact affected characters and surrounding Latin text. Identify which script or Unicode range is missing, then choose a font with coverage for those characters. There is no single font package established as the fix for every language, symbol, operating system, or Linux distribution. A CentOS 7 issue discussion, for example, reported that additional fonts were needed; it does not establish which package will suit another system.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
  • Create and edit PDFs. Collaborate with ease. E-sign documents and collect signatures. Get everything done in one app, wherever you go.
  • Edit text and images without jumping to another app.
  • E-sign documents or request e-signatures on any device. Recipients don’t need to log in to e-sign.
  • Convert PDFs to editable Microsoft Word, Excel, or PowerPoint documents.
  • Share PDFs for collaboration. Commenting features make it easy for reviewers to comment, mark up, and annotate.

Verify fonts in the actual deployment environment

Test fonts where the PDF is produced, not only where the HTML is authored or previewed. The wkhtmltopdf project describes runtime behavior as depending on installed fonts and the fontconfig and freetype2 libraries. In a container or serverless deployment, include the required font files and font configuration in the runtime image or bundle, and verify that the wkhtmltopdf process can see them.

The project’s Lambda example sets FONTCONFIG_PATH=/opt/fonts. Treat that as an example path for that setup, not a universal location: paths and package names vary by distribution and deployment. Configure the font discovery environment for your runtime, provide a font covering the needed characters, and test the resulting PDF from the same image and execution path used in production.

Reproduce the issue with a minimal PDF

Once you have identified the symptom, reduce the problem so you can change one likely cause at a time. The reviewed documentation and issue reports do not establish a controlled, universal troubleshooting checklist; this sequence is a practical way to isolate the two main causes.

  1. Create a small HTML file containing the exact failing characters, a short known-good Latin string, and a UTF-8 declaration if the file is saved as UTF-8.
  2. Generate a PDF using the same operating system, wkhtmltopdf binary, options, input path (URL or local file), and runtime image as production.
  3. Inspect the PDF itself. Do not rely only on how the HTML appears in a browser.
  4. If characters are garbled, verify the file bytes or URL response charset and the HTML declaration; then test the correct default encoding if the content lacks a valid declaration.
  5. If characters are blank or boxed, check that a font covering those characters is installed and discoverable by the process. Test an explicit font family if appropriate.
  6. Change one variable at a time and regenerate the PDF. Record which input, encoding, font, or runtime change alters the result.

Common problems and how to recover

“I added --encoding utf-8, but nothing changed”

That setting cannot supply a missing glyph and cannot correct bytes that were encoded differently. Recheck the actual source encoding and declarations. If only a subset of characters is missing, move to the font-coverage branch instead of adding more encoding declarations.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
  • Perfect Adobe Acrobat Pro alternative – lifetime license for Windows 10 and 11.
  • EDIT text, images, pages, hyperlinks, designs in PDF documents. ORGANIZE PDFs.
  • READ and Comment on PDFs – Intuitive reading modes & document commenting and mark up tools!
  • CREATE, COMBINE, SCAN and COMPRESS PDFs.
  • FILL forms & Digitally Sign PDFs. Work with Digital certificates

“The HTML looks right in my browser, but the PDF has boxes”

The browser and wkhtmltopdf may not use the same fonts or fallback behavior. Check what fonts the wkhtmltopdf runtime can discover, including inside the production container or serverless bundle. Test the output PDF after adding or configuring an appropriate font.

“It works locally but fails on the server”

Compare the actual runtime environments: wkhtmltopdf binary and options, source-loading path, installed fonts, and font configuration. Reproduce the PDF in the server’s image or deployment environment. A font installed only on a developer’s machine is not available to a separate server process.

“A meta tag says UTF-8, but the text is still wrong”

Confirm that the file’s bytes are actually UTF-8. For a URL, inspect the response charset too. A declaration and the bytes must agree; the declaration alone does not transcode the content.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Version scope and what the evidence establishes

The project’s downloads page identifies wkhtmltopdf 0.12.6 as the stable series and gives June 11, 2020 as its release date. Its usage documentation identifies the command-line reference as 0.12.6 with patched Qt. The project repository is archived. These details date the version information; they do not establish a later official release or continued upstream maintenance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
  • ALL-IN-ONE SOLUTION – read, edit, convert, merge and protect your PDF files
  • MAXIMUM FUNCIONALITY – create interactive forms, compare PDFs, bates numbering, find and replace text or colors, convert documents, OCR engine, comment, highlight, fill out and print forms, document protection and others
  • EASY TO INSTALL AND USE – well-structured user-interface, in-program instructions, free tech support whenever you need it
  • GREAT VALUE FOR MONEY - why spend a fortune if you can have maximum functionality at a reasonable price - this also fits the requirements of companies very well

The project documentation is the basis for the default encoding setting, runtime font dependencies, and Lambda font-path example. Individual issue reports are useful accounts of particular environments, not controlled tests or proof that one option or font package fixes all systems.

Or skip the browser setup

If your task is to capture a webpage as an image or PDF rather than repair a wkhtmltopdf installation, ScreenshotNeo is a website screenshot API and MCP server. Its single GET request can return a PNG, JPEG, WebP, or PDF. This is an alternative capture workflow, not a fix for Unicode problems in wkhtmltopdf.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for parameters and response details. ScreenshotNeo accepts cookie/consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses identify the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.

The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for ScreenshotNeo’s free plan.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Does wkhtmltopdf 0.12.6 guarantee that every Unicode character will render?

No. UTF-8 encoding and glyph coverage are separate: the renderer still needs access to a font containing the character.

Is ScreenshotNeo a replacement for repairing an existing wkhtmltopdf workflow?

No. It is a separate screenshot API and MCP capture service, useful when the goal is to capture a webpage rather than fix Unicode rendering in wkhtmltopdf.

Quick Recap

Bestseller No. 1
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
READ and Comment PDFs – Intuitive reading modes & document commenting and mark up.; CREATE, COMBINE, SCAN and COMPRESS PDFs
$99.99
Bestseller No. 2
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
Edit PDFs with Ease. Modify text, images, and layouts directly within your PDF documents.; Convert & Organize. Export PDFs to Word, Excel, or ePub, and organize files with ease.
$99.99
Bestseller No. 3
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
Edit text and images without jumping to another app.; Convert PDFs to editable Microsoft Word, Excel, or PowerPoint documents.
$239.88
Bestseller No. 4
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
Perfect Adobe Acrobat Pro alternative – lifetime license for Windows 10 and 11.; EDIT text, images, pages, hyperlinks, designs in PDF documents. ORGANIZE PDFs.
$99.99
Bestseller No. 5
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
ALL-IN-ONE SOLUTION – read, edit, convert, merge and protect your PDF files
$29.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.