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