Package: abiword Version: 3.0.5~dfsg-3.2 File: /usr/bin/abiword Here we see that there is a bug in the pdf creator: { echo 哈哈 郵編123 哈哈; echo 郵編123;} > /tmp/n.txt abiword --to=pdf /tmp/n.txt When viewing the resultant pdf, one line is garbled.
But if I use LC_ALL=C abiword --to=pdf /tmp/n.txt then all worked fine. OK, what was my $ locale? LANG=zh_TW.UTF-8 LANGUAGE=en_US:en LC_CTYPE=zh_TW.UTF-8 LC_NUMERIC="zh_TW.UTF-8" LC_TIME="zh_TW.UTF-8" LC_COLLATE=C LC_MONETARY="zh_TW.UTF-8" LC_MESSAGES=C LC_PAPER="zh_TW.UTF-8" LC_NAME="zh_TW.UTF-8" LC_ADDRESS="zh_TW.UTF-8" LC_TELEPHONE="zh_TW.UTF-8" LC_MEASUREMENT="zh_TW.UTF-8" LC_IDENTIFICATION="zh_TW.UTF-8" LC_ALL= So sure, always use LC_ALL=C ... but some other characters still get messed up. But I would have to send you my whole secret letter to reproduce it. So just take my word for it. And using LC_ALL=zh_CN.UTF-8 didn't help. Versions of packages abiword recommends: pn abiword-plugin-grammar <none> ii aspell-en [aspell-dictionary] 2020.12.07-0-1 ii fonts-liberation 1:1.07.4-11 ii poppler-utils 22.12.0-2+b1 Yes, pdffonts will show the fonts used. I didn't see anything on the abiword man page about controling what fonts get used.