#2349 closed defect (worksforme)
Anchor feature doesn't work with non-ascii characters
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | 0.9 |
Severity: | major | Keywords: | |
Cc: | jouvin@…, vyt@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I recently upgrade my 0.8.4 + anchor patch + TOC to plain 0.9 + TOC. URLs created by TOC (based on <hl> tags) no longer works if the header text contains non ascii characters (e.g. french accentuated characters). Looking at the page source, it seems that the 'id' attribute generated by Trac for the header contains 2 characters for the non-ascii character : first one is the same as the one used by TOC and second one look as a space but is not a space. Anyway this second character should be removed in anchor name in order to be used when specifying URL.
Michel
Attachments (1)
Change History (9)
comment:1 by , 19 years ago
Cc: | added |
---|
comment:2 by , 19 years ago
Milestone: | 0.9.1 → 0.9.2 |
---|
comment:3 by , 19 years ago
comment:4 by , 19 years ago
I attached a wiki page extracted with trac-admin wiki export. This page was written directly inside Internet Explorer on WXP (in the page edit form). Accentuated characters are encoded in UTF8 (2 bytes).
comment:5 by , 19 years ago
Milestone: | 0.9.3 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
The page works for me with the included [[PageOutline]]
macro.
Seems to be a bug in the TracNav
/TOC
macros (have you updated those
too?). Please contact the authors of those macros for support.
comment:6 by , 19 years ago
BTW, please try using the [[PageOutline]]
macro on your page (it's
included with Trac). If that doesn't work, feel free to reopen this
ticket. Thanks.
comment:7 by , 19 years ago
I apologize for this false report. As you said this is TOC which had to be updated for anchor functionnality as it is implemented in 0.9.
In fact, now, TOC is just an alternative frontend to wiki_to_outline() (standard frontend being PageOutline) with more features, in particular :
- More flexible API as arguments can be specified in any order (with some positional args)
- Ability to build a TOC from several pages
- Removing of first level title by default if the TOC is built for the current page
- Abitility to generate a title index showing the (first) first level header (title) of each page
comment:8 by , 19 years ago
BTW, for those interested, last version of Trac is available on Tack Hacks.
Can you please provide an example for this behavior?