Changeset 5bb7635909266f989a02a4f40c8bb646b09be670
- Timestamp:
- 03/27/08 20:22:37
(8 months ago)
- Author:
- Jason Michalski <armooo@armooo.net>
- git-committer:
- Jason Michalski <armooo@armooo.net> 1206667357 -0500
- git-parent:
[a1c35312398cd2c714b53f8f2555fdb852ccb408]
- git-author:
- Jason Michalski <armooo@armooo.net> 1206667357 -0500
- Message:
Updated to send NPL as UTF-8
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3f4d971 |
r5bb7635 |
|
| 269 | 269 | cname = subcname.split('/')[0] |
|---|
| 270 | 270 | handler.send_response(200) |
|---|
| | 271 | handler.send_header('Content-Type', 'text/html; charset=UTF-8') |
|---|
| 271 | 272 | handler.end_headers() |
|---|
| 272 | 273 | t = Template(file=os.path.join(SCRIPTDIR,'templates', 'npl.tmpl')) |
|---|
| … | … | |
| 287 | 288 | t.shows_per_page = shows_per_page |
|---|
| 288 | 289 | t.redirect = quote(unquote_plus(handler.path).split('/')[1]) |
|---|
| 289 | | o = ''.join([i for i in unicode(t) if i not in (u'\u200b')]) |
|---|
| 290 | | handler.wfile.write(o.encode('latin-1')) |
|---|
| | 290 | handler.wfile.write(unicode(t).encode('utf-8')) |
|---|
| 291 | 291 | |
|---|
| 292 | 292 | def get_tivo_file(self, url, mak, tivoIP, outfile): |
|---|