In my plugin I want to add a navigation-item with the add_ctxtnav()- method in my foreign language (german) which contains non-ASCII characters like ä,ö and ü.
I get the following error-message: SyntaxError: Non-ASCII character '\xc3' in file ../src/systemsdb/ web_ui.py on line 86, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (web_ui.py, line 86) I looked at http://trac.edgewall.org/wiki/TracDev/UnicodeGuidelines and tried every combination of to_unicode, to_utf8(), unicode.decode (), unicode.encode() i can think of. I have successfully created Unicode-Links with tag.a(to_unicode ('zurück'), href=self.env.href.systemsdb())) but i cant call: add_ctxtnav(req, tag.a(to_unicode('zurück'), href=self.env.href.systemsdb())). I have looked for a common way to write localized plugins, but didn't find any useful. MfG WaTho --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
