]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/util.py
Dave does have a point.
[xonotic/xonstat.git] / xonstat / util.py
index 9caf856476b688cd88a84b8be05a08e8f4b664b8..15565db1692d48ccf74aa5fa323c8681efcff35b 100755 (executable)
@@ -68,6 +68,10 @@ def html_colors(str=''):
         str = ''
 
     orig = str
+
+    # "downsample" the given UTF-8 characters to ASCII
+    str = qfont_decode(str)
+
     str = re.sub(r'\^x(\w)(\w)(\w)', 
             "<span style='color:#\g<1>\g<1>\g<2>\g<2>\g<3>\g<3>'>", str)
     str = re.sub(r'\^1', "<span style='color:#FF9900'>", str)