Ticket #3689 (new enhancement)
patch for mimeviewer: autodetect charset by "# -*- coding: windows-1251 -*-"
| Reported by: | igor daniloff | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.13 |
| Component: | version control/browser | Version: | 0.10b1 |
| Severity: | minor | Keywords: | mimeviewer charset auto coding |
| Cc: |
Description
***** api.py.bak2
return utf return self.default_charset
***** api.py
return utf m = re.search(r'-\*-\s+coding:\s*(\S+)\s+-\*-', content[:100]) if m: return m.group(1) return self.default_charset
*****
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


