chris...@gmail.com
unread,Sep 30, 2010, 10:51:47 AM9/30/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to WikklyText
If a page title is unicode, when it is rendered the url quoting will
error out as it expects a str not a unicode.
This seems to fix it (this is 1.6.0) I believe:
-=-=-
--- wikklytextrender.py 2010-09-30 15:50:23.000000000 +0100
+++ /Library/Python/2.6/site-packages/tiddlywebplugins/
wikklytextrender.py 2010-09-30 15:44:41.000000000 +0100
@@ -41,6 +41,10 @@
"""
if '://' in url_fragment or url_fragment.startswith('/'):
return url_fragment, True
+ try:
+ url_fragment = url_fragment.encode('utf-8')
+ except UnicodeEncodeError:
+ pass
return '%s%s' % (base_url, urllib.quote(url_fragment,
safe='')), False
posthook = PostHook()
-=-=-