ajax: fix UTF-8 output
* wrap/python/ajax/spotcgi.in: Here.
This commit is contained in:
parent
813c3799c0
commit
11c453d426
1 changed files with 2 additions and 2 deletions
|
|
@ -346,9 +346,9 @@ def print_stats(automaton, detinfo = False, ta = False):
|
||||||
|
|
||||||
def format_formula(f, kind='div'):
|
def format_formula(f, kind='div'):
|
||||||
if utf8:
|
if utf8:
|
||||||
s = spot.to_utf8_string(f)
|
s = f.to_str('utf8')
|
||||||
else:
|
else:
|
||||||
s = str(f)
|
s = f.to_str()
|
||||||
return '<%s class="formula spot-format">%s</%s>' % (kind, s, kind)
|
return '<%s class="formula spot-format">%s</%s>' % (kind, s, kind)
|
||||||
|
|
||||||
form = cgi.FieldStorage()
|
form = cgi.FieldStorage()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue