Modify

Opened 15 years ago

Closed 12 years ago

Last modified 12 years ago

#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 14 years ago by anonymous

Keywords: UTF-8 added; utf-8 removed

comment:2 Changed 12 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

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

comment:3 Changed 12 years ago by Ryan J Ollos

If you'd like to apply patches I can provide you commit access.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.