Modify ↓
#6092 closed defect (wontfix)
When try to rename a page with utf-8 character, urllib.quote throw a KeyError
| Reported by: | Olivier ANDRE | Owned by: | Noah Kantrowitz |
|---|---|---|---|
| Priority: | normal | Component: | WikiRenamePlugin |
| Severity: | normal | Keywords: | urllib, quote, UTF-8 |
| Cc: | Trac Release: | 0.11 |
Description
it's a know problem with urllib.quote.
To avoid this you can add
"""correction for utf8 name """
if isinstance(oldname, unicode):
oldname = oldname.encode("utf-8")
if isinstance(newname, unicode):
newname = newname.encode("utf-8")
in the begining of the rename_page function, in file util.py (Ligne 25)
Attachments (0)
Change History (3)
comment:1 Changed 15 years ago by
| Keywords: | UTF-8 added; utf-8 removed |
|---|
comment:2 Changed 13 years ago by
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



The plugin is deprecated since there is now support in the Trac core.