Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8228797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:34:59+00:00 2026-06-07T16:34:59+00:00

I have HTML that contains some Unicode characters, and saved in UTF-8 to disk.

  • 0

I have HTML that contains some Unicode characters, and saved in “UTF-8” to disk. I can use less to display it, all characters displayed well:

<h1>什么是Action?</h1>
<p>Play程序接收到的大部分请求,都是由<code>Action</code>来处理的。

But when I use “wkhtmltopdf” to convert it to PDF, it shows broken characters:

broken unicode

My command is:

wkhtmltopdf --encoding utf-8 book.html book.pdf

How to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:35:02+00:00Added an answer on June 7, 2026 at 4:35 pm

    Finally I found the reason: I don’t have unicode fonts in my ubuntu server.

    I upload some truetype fonts from my local ubuntu to the server, everything works fine.

    freewind@freewind:/usr/share/fonts$ cd truetype/
    freewind@freewind:/usr/share/fonts/truetype$ ls
    arphic             ttf-dejavu               ttf-lao
    freefont           ttf-devanagari-fonts     ttf-liberation
    kochi              ttf-gujarati-fonts       ttf-malayalam-fonts
    msttcorefonts      ttf-indic-fonts-core     ttf-oriya-fonts
    openoffice         ttf-japanese-gothic.ttf  ttf-punjabi-fonts
    sazanami           ttf-japanese-mincho.ttf  ttf-tamil-fonts
    takao              ttf-kacst-one            ttf-telugu-fonts
    thai               ttf-kannada-fonts        unfonts
    ttf-bengali-fonts  ttf-khmeros-core         wqy
    

    I simply upload them all, it fix this problem, although I don’t know which font is the key.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a variable that contains some text, some html, basically can be a
I have an HTML table that contains some 500 rows. I have an input
I have an HTML page that contains some filenames that i want to download
I have an asp.net form that contains some html, 2 controls a calendar from
I have a web application where the masterPage/template contains some static HTML that never
I have a AJAX request that will return a string that contains some HTML
I have some html returned from an ajax call that contains blocks of html.
I have docbook generated HTML that contains small, fixed size images. All these images
I have some HTML code that contains nested <ul> elements and I need to
I have some HTML that contains a JSON string. In the on DOM ready

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.