Modify

Opened 5 years ago

Closed 2 years ago

Last modified 2 years ago

#6092 closed defect (wontfix)

When try to rename a page with utf-8 character, urllib.quote throw a KeyError

Reported by: oandre@… Owned by: coderanger
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 4 years ago by anonymous

  • Keywords UTF-8 added; utf-8 removed

comment:2 Changed 2 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:3 Changed 2 years ago by rjollos

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

Add Comment

Modify Ticket

Action
as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.