Edgewall Software

Ticket #7405 (closed enhancement: wontfix)

Opened 12 months ago

Last modified 5 months ago

need a charset solution based on directory

Reported by: lennie Owned by:
Priority: lowest Milestone:
Component: version control/browser Version:
Severity: normal Keywords:
Cc:

Description

This is a feature request.

I have a project,but one module's charset is UTF-8,and another modules' charset is GBK。

but in trac.ini,I only can set a default charset setting, if I set charset as UTF-8,then all GBK source code will not display correctly,all non-ascii code are garbages。

If charset can based on directory,then all problem resolved.

such as:

[trac]

default_charset = UTF-8

[trac : foo/bar]

charset = UTF-8

[trac : foo/blahblah]

charset = GBK

Attachments

Change History

follow-up: ↓ 2   Changed 12 months ago by anonymous

Well, first of all your suggested implementation wouldn't really make much sense. But aside from that, you should just include the correct encoding in the mimetype. Just set your files to text/plain;charset=GBK or whatever.

in reply to: ↑ 1   Changed 12 months ago by lennie

  • priority changed from normal to lowest

Replying to anonymous:

Well, first of all your suggested implementation wouldn't really make much sense. But aside from that, you should just include the correct encoding in the mimetype. Just set your files to text/plain;charset=GBK or whatever.

OK,It's my ignorance,sorry

  Changed 8 months ago by rblank

  • status changed from new to closed
  • resolution set to wontfix

  Changed 5 months ago by cboos

Note that we'll eventually need such a solution for Mercurial - see #7160.

Add/Change #7405 (need a charset solution based on directory)

Author


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


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from (none). Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.