Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chinese language does not appear in pdf #675

Closed
hendranata opened this issue Aug 4, 2017 · 4 comments
Closed

chinese language does not appear in pdf #675

hendranata opened this issue Aug 4, 2017 · 4 comments

Comments

@hendranata
Copy link

helo

i use wicked_pdf gem to generate PDF.
we use chinese language like 產地台灣
and it does not apppear in PDF..
any solution for this?
thanks

@unixmonkey
Copy link
Collaborator

unixmonkey commented Aug 4, 2017

First, make sure your html has something like this in the HEAD to force it into UTF mode:

<meta charset=utf-8" />

If that doesn't help, you may need to install a font on the system, or provide one explicitly with CSS

On Apt-based systems (like Ubuntu or Debian): sudo apt-get install fonts-wqy-zenhei
On Yum-based systems (like Redhat): yum install "@Chinese Support"

This comment shows you how to install a nonstandard system font.

Let me know how it goes!

@yangjindong
Copy link

yangjindong commented Aug 8, 2017

I'm also disturb by this issue.
@unixmonkey this command line save me much time:
yum install "@Chinese Support"

@hendranata
Copy link
Author

@unixmonkey
working fine
thanks

@vijaychouhan-rails
Copy link

add <meta http-equiv="content-type" content="text/html; charset=utf-8" />
On Apt-based systems (like Ubuntu or Debian): sudo apt-get install fonts-wqy-zenhei
On Yum-based systems (like Redhat): yum install "@Chinese Support"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants