diff --git a/wrap/python/ajax/spotcgi.in b/wrap/python/ajax/spotcgi.in index ac8c064f7..ccb484ca7 100755 --- a/wrap/python/ajax/spotcgi.in +++ b/wrap/python/ajax/spotcgi.in @@ -346,9 +346,9 @@ def print_stats(automaton, detinfo = False, ta = False): def format_formula(f, kind='div'): if utf8: - s = spot.to_utf8_string(f) + s = f.to_str('utf8') else: - s = str(f) + s = f.to_str() return '<%s class="formula spot-format">%s' % (kind, s, kind) form = cgi.FieldStorage()