node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

Ubuntu - Fontconfig warning: ignoring UTF-8: not a valid region tag

Open sudarsanps opened this issue 7 years ago • 5 comments

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

sudarsanps avatar Apr 17 '17 10:04 sudarsanps

facing the same issue did anybody else came across this

ahhmarr avatar Apr 20 '17 08:04 ahhmarr

https://github.com/marcbachmann/node-html-pdf/issues/52

marcbachmann avatar Apr 20 '17 08:04 marcbachmann

@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

uber1geek avatar Apr 21 '17 07:04 uber1geek

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 avatar Dec 06 '18 12:12 archanaannapureddy

@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?

bardachov avatar Oct 07 '21 05:10 bardachov