Modify ↓
Opened 15 years ago
Closed 8 years ago
#6058 closed defect (worksforme)
[Patch] use to_unicode to avoid errors if svn files use different encoding
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | IncludeSourcePartialPlugin |
Severity: | normal | Keywords: | |
Cc: | Massimo | Trac Release: | 0.11 |
Description
It's easy to commit a text file into svn and then import it with this plugin which breaks rendering the wiki page.
Attachments (1)
Change History (5)
Changed 15 years ago by
Attachment: | add_to_unicode.diff added |
---|
comment:1 Changed 15 years ago by
Summary: | use to_unicode to avoid errors if svn files are broken → [Patch] use to_unicode to avoid errors if svn files are broken |
---|
comment:2 Changed 15 years ago by
Summary: | [Patch] use to_unicode to avoid errors if svn files are broken → [Patch] use to_unicode to avoid errors if svn files use different encoding |
---|
comment:3 Changed 8 years ago by
Cc: | Massimo added |
---|---|
Owner: | changed from Chris Heller to Ryan J Ollos |
Status: | new → accepted |
comment:4 Changed 8 years ago by
Resolution: | → worksforme |
---|---|
Status: | accepted → closed |
I can't reproduce with Trac 1.0-stable.
- Created a file with utf-8 encoded content:
>>> with open('encoded', 'w') as f: ... f.write(u"łÿö".encode('utf-8'))
$file -I encoded encoded: text/plain; charset=utf-8
- Added to SVN with
svn:mime-type
text/plain
.
Note: See
TracTickets for help on using
tickets.
add to_unicode