2

我有运行 Nginx 和 NodeJs 项目的 Ubuntu 18.04.1 LTS 实例,我正在尝试使用 html-pdf 库创建 PDF,但它给了我以下问题。

Error: Fontconfig warning: ignoring UTF-8: not a valid region tag
at ChildProcess.emit (events.js:182:13)
at ChildProcess.EventEmitter.emit (domain.js:442:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)

我已经尝试了互联网上所有可能的解决方案,例如。 https://github.com/ariya/phantomjs/issues/13433

可能是我错过了一些步骤,但最后我仍然坚持生成 PDF。

先感谢您

4

1 回答 1

3

Please add these following using Octave-CLI

LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

That resolved the issue for me.

于 2019-09-17T06:47:19.567 回答