We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>SmallTOCi18nIssue (03 Feb 2004, DmitryDiskin)
Tags:
create new tag
, view all tags

Question

When I use national (Russian) characters in TOC elements (headers), they are all replaced with underscore symbols. That way I can't navigate from TOC correctly, since all lines with the same line have equal anchors. Is it configurable?

Environment

TWiki version: TWikiBetaRelease
TWiki plugins:  
Server OS: Linux
Web server: Apache
Perl version: 5.6.0
Client OS: Windows 2000
Web Browser: Mozilla

-- DmitryDiskin - 30 Jan 2004

Answer

Hi - this is in fact a bug, due to my not considering the possibility of a heading element requiring all-8-bit characters... I was aware that the use of underscores could cause collisions, but Mozilla had problems with using URL-encoded anchors at the time and I hadn't done much testing with Russian.

It may be that we don't need to do anything special for 8-bit anchor names now, since UTF-8 URLs are now fully supported, but see EncodeURLsWithUTF8 in the mean time.

I've fixed this on my site with the attached patch (see my test site's Russian test page), since Mozilla (at least Firebird 0.7 and IE 5.5) seems OK with un-encoded KOI8-R anchors within the TOC. Let me know if this works for you - it will need more testing to make sure it's OK for other browsers and doesn't have side effects.

I'm adding this to InternationalisationIssues, thanks for reporting it.

-- RichardDonkin - 30 Jan 2004

This is now fixed in TWikiAlphaRelease.

-- RichardDonkin - 02 Feb 2004

Thanks! Works for me (using Mozilla 1.6/Win32).

-- DmitryDiskin - 03 Feb 2004

Topic attachments
I Attachment Action Size Date Who Comment
elsepatch cyrillic_TOC.patch manage 0.6 K 30 Jan 2004 - 14:35 RichardDonkin Fix for languages using many 8-bit characters in heading entries
Topic revision: r4 - 03 Feb 2004 - 12:13:41 - DmitryDiskin
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback