Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 15 years ago

#776 closed defect (fixed)

Character encoding is wrong in wiki plain text format

Reported by: anonymous Owned by: Christopher Lenz
Priority: normal Milestone: 0.8
Component: general Version: 0.7.1
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Firefox tries to render the text as ISO-8859-1, but it's sent in utf-8 as everything else in trac.

For example: http://projects.edgewall.com/trac/wiki/TracUnicode?format=txt

I guess the line

self.req.send_header('Content-Type', 'text/plain')

in display_txt should be

self.send_header('Content-Type', 'text/plain;charset=utf-8')

similar to as it is in display in core.py

Attachments (0)

Change History (6)

comment:1 by daniel, 20 years ago

Milestone: 0.8
Severity: normaltrivial

comment:2 by Jonas Borgström, 20 years ago

Status: newassigned

comment:3 by Christopher Lenz, 20 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Status: assignednew

This also applies to:

  • Viewing Wiki pages as plain text
  • Viewing reports as SQL, CSV or tab-separated values
  • Slightly less importantly, HDF display of any page (?format=hdf)

Patch pending. Stealing bug from jonas ;-)

comment:4 by Christopher Lenz, 20 years ago

Status: newassigned

comment:5 by Christopher Lenz, 20 years ago

… and

  • Unified diffs in the Changeset

comment:6 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [952].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.