DEADSOFTWARE

Game: Write CSV-files with round statistics in UTF-8 instead of the default ANSI...
authorDmitry D. Chernov <blackdoomer@yandex.ru>
Mon, 10 Apr 2023 19:20:43 +0000 (05:20 +1000)
committerDmitry D. Chernov <blackdoomer@yandex.ru>
Mon, 10 Apr 2023 19:20:43 +0000 (05:20 +1000)
src/game/g_game.pas

index b1a10ea8ba434ccaf0394d86b186678309e2ffaa..958023d653c0cb8c1ff125b7ae2cb405dbce9579 100644 (file)
@@ -680,6 +680,7 @@ begin
     fname := e_CatPath(fname, StatFilename + '.csv');
     AssignFile(s, fname);
     try
+      SetTextCodePage(s, CP_UTF8);
       Rewrite(s);
       // line 1: stats ver, datetime, server name, map name, game mode, time limit, score limit, dmflags, game time, num players
       if g_Game_IsNet then fname := NetServerName else fname := '';