from sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound\r
from xonstat.d0_blind_id import d0_blind_id_verify\r
from xonstat.models import *\r
-from xonstat.util import strip_colors\r
+from xonstat.util import strip_colors, qfont_decode\r
\r
log = logging.getLogger(__name__)\r
\r
(key, value) = line.strip().split(' ', 1)\r
\r
# Server (S) and Nick (n) fields can have international characters.\r
- # We encode these as UTF-8.\r
+ # We first convert to normal ASCII, then encode them as UTF-8.\r
if key in 'S' 'n':\r
- value = unicode(value, 'utf-8')\r
+ value = qfont_decode(unicode(value, 'utf-8'))\r
\r
if key in 'V' 'T' 'G' 'M' 'S' 'C' 'R' 'W':\r
game_meta[key] = value\r