Commits

Olemis Lang  committed 12c5bee

IG: Unicode chars while URL encoding GViz args

  • Participants
  • Parent commits dacf908

Comments (0)

Files changed (1)

File trac-dev/gviz/tracgviz/ig/wiki.py

 from trac.core import Component, ComponentManager, implements, TracError
 from trac.config import ListOption
 from trac.mimeview.api import Context
+from trac.util.text import unicode_urlencode
 from trac.wiki.api import parse_args, IWikiMacroProvider
 from trac.wiki.formatter import Formatter
 from trac.wiki.macros import WikiMacroBase
                         for k, v in args.iteritems()), # custom args ;)
                 spec_args.iteritems()))
         url = urlunparse(['http', 'gmodules.com', '/ig/ifr', '', \
-                        urlencode(gadget_params), ''])
+                         unicode_urlencode(gadget_params), ''])
 
         self.log.debug("IG: Gadget preferences %s", gadget_params)
         return Markup('<script src="%s"></script>' % (url,))