Asciidoctor:页脚中的错误编码

Asciidoctor: Wrong Encoding in the Footer

我将我的 .adoc 文件保存为 UTF-8 并使用 asciidoctor 编译它(在 Windows 10)。在我写的文本中,没有编码问题,但在自动生成的页脚中我得到

Last updated 2016-08-27 11:52:56 Mitteleuropõische Sommerzeit 

你看我是在德国机器上编译的。对于不太熟悉德语的人,“õ”应该是“ä”。

我想在生成时间戳时出现了一些问题。我想更正拼写错误或更改时间格式,使其不包含 "words"。有人可以帮忙吗?

此问题已在 Asciidoctor 1.5.8 中修复,请参阅:https://github.com/asciidoctor/asciidoctor/issues/2770

我们不再使用 %Z,因为 %Z 依赖于 OS,并且可能包含非 UTF-8 编码的字符:https://github.com/asciidoctor/asciidoctor/blob/cb7c20593344bda9bc968a619b02065d3401ad29/lib/asciidoctor/document.rb#L1253-L1254