-
Notifications
You must be signed in to change notification settings - Fork 9k
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
The problem of Chinese disorderly code #1143
Comments
You're missing fonts support on the system, try install Chinese fonts, for example in RedHat/CentOS:
|
Ubuntu: try to install sudo apt-get install fonts-wqy-zenhei |
the proplem is solved! |
I have installed |
Thanks dickeylth! |
@dickeylth thx |
@dickeylth thx, fix the issue in centos7.3 |
CentOS 7 & Puppeteer
# root
$ yum groupinstall "Chinese Support"
$ yum groupinstall "Font"
|
By the way, I had packed a image at hub.docker
|
same problem in debia system was solved by use this cmd! |
same problem in alpine docker image. was solved by use the following cmd |
手动安装notosans字体的方法 (manual install notosans method) wget https://github.com/googlefonts/noto-cjk/releases/download/Sans2.004/08_NotoSansCJKsc.zip
unzip 08_NotoSansCJKsc.zip
mv NotoSansCJKsc-* ~/.local/share/fonts
fc-cache
fc-list |
render or Heroku can install fonts like this wget https://github.com/notofonts/noto-cjk/raw/main/google-fonts/NotoSerifSC%5Bwght%5D.ttf && mkdir -p ~/.local/share/fonts/noto && cp *.ttf ~/.local/share/fonts/noto && fc-cache -f -v |
my puppeteer web deploy in heroku!
the test heroku site: https://urlforpdf.herokuapp.com/urltoimg?url=http://www.baidu.com
The problem of Chinese disorderly code:
The text was updated successfully, but these errors were encountered: