--> -->

UnicodeEncodeError

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

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1149 from MoinMoin.wikiaction import getHandler
    2. 1150 handler = getHandler(self, action)
    3. 1151 handler(self.page.page_name, self)
    4. 1152
    5. 1153 # generate page footer (actions that do not want this footer use
    • handler = <function do_show>
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'map'
  2. /home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'map', request=<MoinMoin.request.RequestCGI object>)

    1. 466 else:
    2. 467 request.cacheable = 1
    3. 468 Page(request, pagename).send_page(request, count_hit=1)
    4. 469
    5. 470
    • global Page = <class MoinMoin.Page.Page>
    • request = <MoinMoin.request.RequestCGI object>
    • pagename = u'map'
    • ).send_page undefined
    • count_hit undefined
  3. /home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'count_hit': 1})

    1. 1251 format_args=pi_formatargs,
    2. 1252 do_cache=do_cache,
    3. 1253 start_line=pi_lines)
    4. 1254
    5. 1255 # check for pending footnotes
    • start_line undefined
    • pi_lines = 1
  4. /home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class wikiconfig.plugin.parser.gpx2googlemaps.Parser>, body=u'<?xml version="1.0" encoding="UTF-8" standalone=...intExtension>\n </extensions>\n </wpt>\n\n</gpx>\n', format_args=u'', do_cache=1, **kw={'start_line': 1})

    1. 1338
    2. 1339 if not (do_cache and self.canUseCache(Parser)):
    3. 1340 self.format(parser)
    4. 1341 else:
    5. 1342 try:
    • self = <MoinMoin.Page.Page instance>
    • self.format = <bound method Page.format of <MoinMoin.Page.Page instance>>
    • parser = <wikiconfig.plugin.parser.gpx2googlemaps.Parser instance>
  5. /home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page instance>, parser=<wikiconfig.plugin.parser.gpx2googlemaps.Parser instance>)

    1. 1359 def format(self, parser):
    2. 1360 """ Format and write page content without caching """
    3. 1361 parser.format(self.formatter)
    4. 1362
    5. 1363 def execute(self, request, parser, code):
    • parser = <wikiconfig.plugin.parser.gpx2googlemaps.Parser instance>
    • parser.format = <bound method Parser.format of <wikiconfig.plugin.parser.gpx2googlemaps.Parser instance>>
    • self = <MoinMoin.Page.Page instance>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
  6. /home/traverse/moinmoin/share/moin/traverse/data/plugin/parser/gpx2googlemaps.py in format (self=<wikiconfig.plugin.parser.gpx2googlemaps.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>)

    1. 77 gpxstr=self.raw.strip()
    2. 78 #self.request.write(cgi.escape(gpxstr))
    3. 79 dom=parseString(gpxstr)
    4. 80 self.request.write(template)
    5. 81
    • dom undefined
    • global parseString = <function parseString>
    • gpxstr = u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>'
  7. /usr/lib/python2.7/xml/dom/minidom.py in parseString (string=u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>', parser=None)

    1. 1926 if parser is None:
    2. 1927 from xml.dom import expatbuilder
    3. 1928 return expatbuilder.parseString(string)
    4. 1929 else:
    5. 1930 from xml.dom import pulldom
    • expatbuilder = <module 'xml.dom.expatbuilder' from '/usr/lib/python2.7/xml/dom/expatbuilder.pyc'>
    • expatbuilder.parseString = <function parseString>
    • string = u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>'
  8. /usr/lib/python2.7/xml/dom/expatbuilder.py in parseString (string=u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>', namespaces=True)

    1. 938 else:
    2. 939 builder = ExpatBuilder()
    3. 940 return builder.parseString(string)
    4. 941
    5. 942
    • builder = <xml.dom.expatbuilder.ExpatBuilderNS instance>
    • builder.parseString = <bound method ExpatBuilderNS.parseString of <xml.dom.expatbuilder.ExpatBuilderNS instance>>
    • string = u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>'
  9. /usr/lib/python2.7/xml/dom/expatbuilder.py in parseString (self=<xml.dom.expatbuilder.ExpatBuilderNS instance>, string=u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>')

    1. 221 parser = self.getParser()
    2. 222 try:
    3. 223 parser.Parse(string, True)
    4. 224 self._setup_subset(string)
    5. 225 except ParseEscape:
    • parser = <pyexpat.xmlparser object>
    • parser.Parse = <built-in method Parse of pyexpat.xmlparser object>
    • string = u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>'
    • builtin True = True

UnicodeEncodeError

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

  • args = ('ascii', u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>', 3012, 3013, 'ordinal not in range(128)')
  • encoding = 'ascii'
  • end = 3013
  • message = ''
  • object = u'<?xml version="1.0" encoding="UTF-8" standalone=...ointExtension>\n </extensions>\n </wpt>\n\n</gpx>'
  • reason = 'ordinal not in range(128)'
  • start = 3012

System Details

  • Date: Sun, 22 Dec 2024 08:22:55 +0000
  • Platform: Linux hz1 5.10.0-29-amd64 #1 SMP Debian 5.10.216-1 (2024-05-03) x86_64
  • Python: Python 2.7.18 (/usr/bin/python2.7)
  • MoinMoin: Release 1.5.6 (release)