Tags:
internationalization1Add my vote for this tag create new tag
view all tags

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

TWiki version: DakarRelease
TWiki plugins: disabled all plugins
Server OS: RedHat Linux AS4
Web server: apache 2.2.0
Perl version: 5.8.5
Client OS: windows xp
Web Browser: ie 6.0
Categories: Internationalisation

-- ZhengLingxiang - 06 Apr 2006

Answer

ALERT! 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.:
    Preview works fine.

  • page display format error after save:
    page display format error after save

  • remove one char from heading line, the page can display correctly.:
    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

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivezip configure.html.zip r1 manage 29.4 K 2006-04-06 - 04:00 UnknownUser twiki configure of my server
JPEGjpg format_error_after_save.JPG r2 r1 manage 97.4 K 2006-04-06 - 04:52 UnknownUser page display format error after save
JPEGjpg preview_ok.JPG r1 manage 39.8 K 2006-04-06 - 03:50 UnknownUser Preview works fine.
JPEGjpg remove_one_char_ok.JPG r1 manage 48.1 K 2006-04-06 - 03:58 UnknownUser remove one char from heading line, the page can display correctly.
Texttxt test_raw.txt r1 manage 0.2 K 2006-04-06 - 03:48 UnknownUser The test page content
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-10-27 - RichardDonkin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.