Question
When I create a wiki page with chinese content. The heading line in chinese may not display correctly. When this happened, the following paragraphs also present with the heading line format. This only happened after the page is saved. But all thing works fine when preview the page before save it. If some chars of the heading are removed or added, every thing will works fine. Please check the attached file for more information.
Environment
--
ZhengLingxiang - 06 Apr 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
- Preview works fine.:
- page display format error after save:
- remove one char from heading line, the page can display correctly.:
--
ZhengLingxiang - 06 Apr 2006
Thanks very much for the detail, it's now much more clear what is happening. This looks very similar to
TOCnotWorkingForChineseHeadings, for which there is a one-line code change you can try. The line number may be different but I expect the code is similar, as this fix may have not made it into TWiki 4.0.
If this change does work for you, please log this as a a bug in
Bugs:WebHome
.
--
RichardDonkin - 06 Apr 2006
Thank Richard! It works now! I just commented out the line 398 in Render.pm.
$anchorName =~ s/^(.{32})(.*)$/$1/; # limit to 32 chars - FIXME: Use Unicode chars before truncate
Could you have a look at
Bugs:Item2032
which is another bug that I find about the utf8?
--
ZhengLingxiang - 06 Apr 2006
Thanks a lot~!I met the same problem
--
DavidNick - 11 Apr 2006
Thank you so much. This also helps me out.
--
JackSun - 26 Oct 2006
A good place to look if you have problems with non-English languages is
InternationalisationIssues, where I try to log the most significant
I18N issues. There is an open bug about improving support for Chinese TOCs over in
Bugs:WebHome
but solving it is not so easy - see
Bugs:Item2960
.
--
RichardDonkin - 27 Oct 2006