Edgewall Software

Ticket #7405 (closed enhancement: wontfix)

Opened 5 months ago

Last modified 6 weeks 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 5 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 5 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 6 weeks ago by rblank

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

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

Author



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.