Edgewall Software
Modify

Ticket #776 (closed defect: fixed)

Opened 8 years ago

Last modified 3 years ago

Character encoding is wrong in wiki plain text format

Reported by: anonymous Owned by: cmlenz
Priority: normal Milestone: 0.8
Component: general Version: 0.7.1
Severity: trivial Keywords:
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 8 years ago by daniel

  • Milestone set to 0.8
  • Severity changed from normal to trivial

comment:2 Changed 8 years ago by jonas

  • Status changed from new to assigned

comment:3 Changed 8 years ago by cmlenz

  • Owner changed from jonas to cmlenz
  • Status changed from assigned to new

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 Changed 8 years ago by cmlenz

  • Status changed from new to assigned

comment:5 Changed 8 years ago by cmlenz

… and

  • Unified diffs in the Changeset

comment:6 Changed 8 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [952].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.