Project

General

Profile

Bug #626

Updated by Elmer de Looff almost 13 years ago

<a href="" class="button">↑</a> is handled just fine, however:

<pre><code> <pre>
{{ if [paragraph:sort] > 0}} <a href="" class="button">↑</a> {{ endif }}
</code></pre> </pre>

Gives me an error:
<pre><code> <pre>
Traceback (most recent call last):


File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)


File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)


File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)


File "/home/underdark/underdark/libs/uweb/__init__.py", line 110, in RequestHandler
response = pages.InternalServerError(*sys.exc_info())


File "/home/underdark/underdark/libs/uweb/pagemaker/__init__.py", line 329, in InternalServerError
'traceback': self._ParseStackFrames(traceback)}))


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 263, in Parse
return SafeString(''.join(tag.Parse(**kwds) for tag in self))


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 263, in <genexpr>
return SafeString(''.join(tag.Parse(**kwds) for tag in self))


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 459, in Parse
output.append(''.join(tag.Parse(**replacements) for tag in self))


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 459, in <genexpr>
output.append(''.join(tag.Parse(**replacements) for tag in self))


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 459, in Parse
output.append(''.join(tag.Parse(**replacements) for tag in self))


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 459, in <genexpr>
output.append(''.join(tag.Parse(**replacements) for tag in self))


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 564, in Parse
value = TAG_FUNCTIONS[func](value)


File "/home/underdark/underdark/libs/uweb/templateparser.py", line 632, in HtmlEscape
text = unicode(text)


UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 500: ordinal not in range(128)
</code></pre> </pre>

Back