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 History Action Size Date Who Comment
Unknown file formatpatch cyrillic_TOC.patch r1 manage 0.6 K 2004-01-30 - 14:35 UnknownUser Fix for languages using many 8-bit characters in heading entries
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2004-02-03 - DmitryDiskin
 
  • 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.