Edgewall Software

Opened 17 years ago

Last modified 16 years ago

#5684 closed defect

Error in python script, codec can't decode byte — at Initial Version

Reported by: alexandrefelipemuller@… Owned by: Matthew Good
Priority: high Milestone:
Component: report system Version: 0.11b1
Severity: minor Keywords: unicode decode error
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi guys,

I was translating my trac project to portuguese, and when I changed line 415 of /usr/share/python-support/trac/trac/ticket/report.py

in description = 'String'

This string doesn't support chars like ç ã á í used in portuguese :( But the othes string in others file accepted it

My codification is UTF-8

Python Traceback

Traceback (most recent call last):

File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request

dispatcher.dispatch(req)

File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "/var/lib/python-support/python2.4/trac/ticket/report.py", line 88, in process_request

resp = self._render_view(req, db, id)

File "/var/lib/python-support/python2.4/trac/ticket/report.py", line 241, in _render_view

req.hdfreport.description = wiki_to_html(description, self.env, req)

File "/var/lib/python-support/python2.4/trac/wiki/formatter.py", line 1000, in wiki_to_html

return Markup(out.getvalue())

File "/var/lib/python-support/python2.4/trac/util/html.py", line 46, in new

return unicode.new(self, text)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128)

Change History (0)

Note: See TracTickets for help on using tickets.