Modify

Opened 6 years ago

Closed 11 months ago

#7645 closed defect (fixed)

[PATCH] UnicodeDecodeError when file to be edited cantains cyrillic characters.

Reported by: dnedelchev Owned by: mvr
Priority: high Component: EditFilesPlugin
Severity: normal Keywords: patch UnicodeDecodeError
Cc: Trac Release: 0.12

Description (last modified by rjollos)

Before line#79

        return 'edit_file.html', {'edit_file':edit_file,
                                  'file_data':current}

insert:

        from trac.util.text import to_unicode
        current = to_unicode(current)

Tested with Trac-0.12 on WindowsXP and Linux.

Attachments (0)

Change History (1)

comment:1 Changed 11 months ago by rjollos

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [8676].

Add Comment

Modify Ticket

Action
as closed The owner will remain mvr.
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.