2 hours ago · Tech · 0 comments

I once tried creating a wiki page whose title consisted entirely of kana characters.At first, everything appeared to work correctly, although the system was clearly relying on some unusual internal behavior. Instead of storing the characters directly, PmWiki automatically converted the kana into HTML entities such as 霧 and 尾.????Most pages remained accessible without issues. However, a few pages behaved differently: clicking the generated link would redirect back to the homepage instead of opening the target page. The page became unreachable through normal navigation.After tracing the issue, the root cause turned out to be character encoding.By default, PmWiki is configured to use the ISO-8859-1 (Latin-1) charset. Since Latin-1 cannot represent kanji characters natively, the engine falls back to HTML entity encoding, which can lead to broken page resolution in certain edge cases.The fix was surprisingly simple. Enable UTF-8 support by adding the following line near the…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.