Modify

Opened 4 years ago

Last modified 4 years ago

#7645 new defect

[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

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 (0)

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.