How do I specify the source file encoding? This is necessary to Trac to display it correctly. In SVN for the applicable property svn: mime-type. The same property can specify the language (software) sources. Trac will syntax highlighting.