Modify ↓
      
Opened 19 years ago
Closed 19 years ago
#3690 closed enhancement (duplicate)
patch for mimeviewer: autodetect charset by "# -*- coding: windows-1251 -*-"
| Reported by: | igor daniloff | Owned by: | Jonas Borgström | 
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | version control/browser | Version: | 0.10b1 | 
| Severity: | normal | Keywords: | 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*-\*-\s+coding:\s*(\S+)\s+-\*-', content[:100]) if m: return m.group(1) return self.default_charset
*
Attachments (0)
  Note:
 See   TracTickets
 for help on using tickets.
    


  
Duplicate of #3689