[snowy] Fix unicode encode error
- From: Brad Taylor <btaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [snowy] Fix unicode encode error
- Date: Thu, 23 Jul 2009 14:14:33 +0000 (UTC)
commit 39d7adb37e08fe65f18e9246033d29d7c0155f42
Author: Brad Taylor <brad getcoded net>
Date: Thu Jul 23 10:14:32 2009 -0400
Fix unicode encode error
notes/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/notes/views.py b/notes/views.py
index c2a6e82..3a85c90 100644
--- a/notes/views.py
+++ b/notes/views.py
@@ -85,7 +85,7 @@ def note_detail(request, username, note_id, slug='',
template = CONTENT_TEMPLATES.get(note.content_version, DEFAULT_CONTENT_TEMPLATE)
complete_xml = template.replace('%%%CONTENT%%%', note.content.encode('UTF-8'))
- doc = libxml2.parseDoc(clean_content(complete_xml, author))
+ doc = libxml2.parseDoc(clean_content(complete_xml, author).encode('UTF-8'))
result = style.applyStylesheet(doc,
{'base-user-url': "'%s'" % reverse('note_index', kwargs={'username': author.username})}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]