ASCII Encode Character in WikiTree

Description

If you use a Username with Unicode Characters like ö,ä,ü and Login you get an error like:

ascii' codec can't encode character u'\xe4' in position 68: ordinal not in range(128) 

Just viewing the Page without login works!

Exampel and Error Messages

ToDo

Contact

Solution

Thank you very much, Marcel, for this report. Here's a quick patch to resolve this:

In the explorer.py please change line 368 from:

   1           cache = caching.CacheEntry(request, 'wiki_tree', wikiutil.url_quote(self.root)+"@"+self.user_name)

to:

   1           cache = caching.CacheEntry(request, 'wiki_tree', "%s@%s"% (wikiutil.url_quote(self.root), request.user.id))

Of course this fix will be included in the next release!

-- WolfgangFischer 2007-05-30 13:42:55

MoinMoin: ThemeMarket/Explorer/Fixed/ASCII Encode Character in WikiTree (last edited 2007-12-22 09:57:11 by WolfgangFischer)