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.
/home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)
- 1149 from MoinMoin.wikiaction import getHandler
- 1150 handler = getHandler(self, action)
- 1151 handler(self.page.page_name, self)
- 1152
- 1153 # generate page footer (actions that do not want this footer use
- handler = <function do_print>
- self = <MoinMoin.request.RequestCGI object>
- self.page = <MoinMoin.Page.Page instance>
- self.page.page_name = u'map'
/home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_print (pagename=u'map', request=<MoinMoin.request.RequestCGI object>)
- 486
- 487 def do_print(pagename, request):
- 488 do_show(pagename, request)
- 489
- 490
- global do_show = <function do_show>
- pagename = u'map'
- request = <MoinMoin.request.RequestCGI object>
/home/traverse/moinmoin/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'map', request=<MoinMoin.request.RequestCGI object>)
- 466 else:
- 467 request.cacheable = 1
- 468 Page(request, pagename).send_page(request, count_hit=1)
- 469
- 470
- global Page = <class MoinMoin.Page.Page>
- request = <MoinMoin.request.RequestCGI object>
- pagename = u'map'
- ).send_page undefined
- count_hit undefined
/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})
- 1251 format_args=pi_formatargs,
- 1252 do_cache=do_cache,
- 1253 start_line=pi_lines)
- 1254
- 1255 # check for pending footnotes
- start_line undefined
- pi_lines = 1
/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})
- 1338
- 1339 if not (do_cache and self.canUseCache(Parser)):
- 1340 self.format(parser)
- 1341 else:
- 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>
/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>)
- 1359 def format(self, parser):
- 1360 """ Format and write page content without caching """
- 1361 parser.format(self.formatter)
- 1362
- 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>
/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>)
- 77 gpxstr=self.raw.strip()
- 78 #self.request.write(cgi.escape(gpxstr))
- 79 dom=parseString(gpxstr)
- 80 self.request.write(template)
- 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>'
/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)
- 1926 if parser is None:
- 1927 from xml.dom import expatbuilder
- 1928 return expatbuilder.parseString(string)
- 1929 else:
- 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>'
/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)
- 938 else:
- 939 builder = ExpatBuilder()
- 940 return builder.parseString(string)
- 941
- 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>'
/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>')
- 221 parser = self.getParser()
- 222 try:
- 223 parser.Parse(string, True)
- 224 self._setup_subset(string)
- 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: Thu, 21 Nov 2024 17:41:18 +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)