Opened 15 years ago
Last modified 13 years ago
#8710 closed defect
Change default encoding for mimeview to UTF-8 from ISO-8859-15 — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 1.0 |
Component: | rendering | Version: | 0.11.5 |
Severity: | trivial | Keywords: | unicode |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This is patch from Debian package http://packages.debian.org/sid/trac
-
trac/mimeview/api.py
#! /bin/sh /usr/share/dpatch/dpatch-run ## 30_default_charset_utf8.dpatch by <wmb@beron.tangosoft.com> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Use UTF-8 as default charset @DPATCH@ diff -uraN trac-0.11.5.orig/trac/mimeview/api.py trac-0.11.5/trac/mimeview/api.py
old new 579 579 annotators = ExtensionPoint(IHTMLPreviewAnnotator) 580 580 converters = ExtensionPoint(IContentConverter) 581 581 582 default_charset = Option('trac', 'default_charset', ' iso-8859-15',582 default_charset = Option('trac', 'default_charset', 'utf-8', 583 583 """Charset to be used when in doubt.""") 584 584 585 585 tab_width = IntOption('mimeviewer', 'tab_width', 8,
Note:
See TracTickets
for help on using tickets.