Issue_0066 

Fuego wiki

Login or create account

Issue 0066

Summary
Can't display a test with a field containing non-7-bit-ascii on server
Owner
Tim
Reporter
Tim
Status
open
Priority
medium

Description [edit section]

Take a look at:

http://fuegotest.org/server/Benchmark.iperf3

The test package Benchmark.iperf3-0.1-1.2.1.ftp, which is on the server as of this writing, has the ß character in the author section, which tbwiki, and in particular ProcessorFuegoShow.py don't handle correctly.

I get the traceback:

Exception raised by tbwiki software
Traceback (most recent call last):
  File "/usr/lib/cgi-bin/server.cgi", line 55, in
    main(req)
  File "/home/ubuntu/work/tbwiki/cgi-bin/tbwiki_engine.py", line 2423, in main
    print html
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 203: ordinal not in range(128)
This is a python 2.7 issue using the 'str()' function (implicitly in the string formatting in presenting the fields), to format data for output by tbwiki.

I tried the following:

  • value = unicode(value) and
  • value = value.encode('utf-8','ignore').decode('utf-8')

in ProcessorFuegoShow.py::main(), but they didn't work.

Notes [edit section]

I don't think tbwiki handles weird characters at all on pages. This can be seen because it mangled the character, on this issue page.

backlink

Fuego Issues List

TBWiki engine 1.8.3 by Tim Bird