node-html-pdf
node-html-pdf copied to clipboard
Ubuntu - Fontconfig warning: ignoring UTF-8: not a valid region tag
i am using the ubuntu 16.04.1 server, which is running on nginx. So whenever i try to generate the pdf. it throws following error : "Fontconfig warning: ignoring UTF-8: not a valid region tag" and my locale are as follows:
LANG=C.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8
I have tired all other methods that had mentioned before. but it didn't solve any issue.How to solve this issue.
Thanks in advance
facing the same issue did anybody else came across this
https://github.com/marcbachmann/node-html-pdf/issues/52
@marcbachmann @ahhmarr @sudarsanps
This should fix your issue:
sudo apt-get install language-pack-en-base
sudo dpkg-reconfigure locales (Select All and then select en_us for local)
sudo reboot
Hi, We tried this solution but not worked. Ubuntu version 14.0.0 Our locale is LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8
versions: html-pdf:2.2.0 phantomjs-prebuilt:2.1.16 Can you please help on this.
@archanaannapureddy I've got exactly same issue as you mentioned. I've tried all suggested solutions, but still have the same. Did you solve it?