解决了UTF-8处理的问题,方法是在local.php中添加
$Newline="\376"; // 0xFE
这样新增文档将使用utf-8的保留字符0xFE作为保存的行分割符,而老的文档仍使用原有的分割符——0xB2。Pmwiki 0.5.6 发布说明。
The $Newline separator and UTF-8 support
----------------------------------------
Serge Semashko noted that the character that PmWiki has traditionally
used to represent newlines in data files ("\262") causes some conflicts
with the UTF-8 character set. Some discussion took place on the
list, and then Serge suggested an excellent solution to the problem.
Essentially, each page held in wiki.d or wikilib.d now also provides
a "newline=" entry that identifies the character sequence being used to
represent newlines in that page. Older pages that do not supply the
"newline=" field still default to the "\262" character, so backwards
compatibility with existing pages isn't an issue.
Thus, one can redefine $Newline in local.php to be any desired character
sequence that won't conflict with the markup, and all new pages will be
created using that sequence to represent newlines. So, someone using
the UTF-8 charset ought to be able to set $Newline="\376" (0xfe) in
local.php to resolve the problem.