Opened 7 years ago

Closed 4 years ago

# Genshi error happens when I do a Display/Refresh in LogViewer page

Reported by: Owned by: Anton Voßel izzy normal LogViewerPlugin normal unicode utf8 0.12

### Description

Genshi UnicodeDecodeError error while rendering template 'logviewer.html', line 53, char 3

Trac 0.11.7.1dev-r0 LoViewerPlugin 0.2

### comment:1 follow-up:  2 Changed 7 years ago by izzy

Thank you for your report. But to figure out what the problem is, I need some more details:

• Could you please enable logging for your trac instance and then post the full error stack?
• Could you tell me what character set you are using? (stupid question probably, as it will be utf-8), and what your operating system itself is using (btw, which OS?)?
• If you have any idea what text you expected, so we might guess the character which broke it, this would be helpful as well.

### comment:2 in reply to:  1 ; follow-up:  3 Changed 4 years ago by Tomas Pelka

Trac Release: 0.11 → 0.12

Thank you for your report. But to figure out what the problem is, I need some more details:

• Could you please enable logging for your trac instance and then post the full error stack?
• Could you tell me what character set you are using? (stupid question probably, as it will be utf-8), and what your operating system itself is using (btw, which OS?)?
• If you have any idea what text you expected, so we might guess the character which broke it, this would be helpful as well.

Facing this issue as well, Linux (64b), utf-8, Trac 0.12.4, LogViewerPlugin 0.2.

I'm sorry I cant get any more verbose backtrace.

### comment:3 in reply to:  2 ; follow-up:  4 Changed 4 years ago by Jun Omae

Facing this issue as well, Linux (64b), utf-8, Trac 0.12.4, LogViewerPlugin 0.2.

Try ticket7527-logviewerplugin-trunk-r13332.diff, Genshi template requires unicode instances.

### comment:4 in reply to:  3 Changed 4 years ago by Tomas Pelka

Facing this issue as well, Linux (64b), utf-8, Trac 0.12.4, LogViewerPlugin 0.2.

Try ticket7527-logviewerplugin-trunk-r13332.diff, Genshi template requires unicode instances.

This is working as a charm, thanks a lot.

Tom

### comment:5 Changed 4 years ago by izzy

Keywords: unicode utf8 added → fixed new → closed

Sorry for the long delay, I'm currently quite busy on a lot of projects. Lucky for you all, one of them is upgrading a Trac installation to v1.0 which includes this plugin :)

Thanks for the patch! In fact, that fixed the main part of the issue. An additional minor change was required at the top of the file, declaring it utf8-encoded (# -*- coding: utf-8 -*-). Included this fix with r13412.

### Modify Ticket

Change Properties