Modify ↓
Opened 18 years ago
Last modified 9 years ago
#3689 new enhancement
patch for mimeviewer: autodetect charset by "# -*- coding: windows-1251 -*-"
Reported by: | igor daniloff | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | version control/browser | Version: | 0.10b1 |
Severity: | minor | Keywords: | patch mimeviewer charset auto coding |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
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 (0)
Change History (5)
comment:1 by , 18 years ago
Keywords: | review added |
---|
comment:2 by , 18 years ago
Keywords: | review removed |
---|---|
Milestone: | → 0.11 |
Owner: | changed from | to
Severity: | normal → minor |
Well, I think I'm going to integrate #3332 piecewise and I'll add this one to the mix.
comment:4 by , 9 years ago
Owner: | removed |
---|
comment:5 by , 9 years ago
Keywords: | patch added |
---|
Note:
See TracTickets
for help on using tickets.
patch attached, adding review keyword