From 33b3dc24b5e26f6597d65097150cae65bb9bc153 Mon Sep 17 00:00:00 2001 From: KRKeegan <-NOSPAM-kevin@krkeegan.com> Date: Fri, 28 Mar 2008 21:29:06 -0700 Subject: [PATCH] Add unicode support for NPL Contributed by: Armooo --- plugins/admin/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/admin/admin.py b/plugins/admin/admin.py index e0b561a..54986d4 100644 --- a/plugins/admin/admin.py +++ b/plugins/admin/admin.py @@ -288,7 +288,8 @@ class Admin(Plugin): t.FirstAnchor = quote(FirstAnchor) t.shows_per_page = shows_per_page t.redirect = quote(unquote_plus(handler.path).split('/')[1]) - handler.wfile.write(t) + o = ''.join([i for i in unicode(t) if i not in (u'\u200b')]) + handler.wfile.write(o.encode('latin-1')) def get_tivo_file(self, url, mak, tivoIP, outfile): #global status -- 2.11.4.GIT