Opened 14 years ago

Closed 9 years ago

#7645 closed defect (fixed)

[PATCH] UnicodeDecodeError when file to be edited cantains cyrillic characters. — at Version 1

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

Description (last modified by Ryan J Ollos)

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.

Change History (1)

comment:1 Changed 9 years ago by Ryan J Ollos

Description: modified (diff)
Resolution: fixed
Status: newclosed

Fixed in [8676].

Note: See TracTickets for help on using tickets.