From: Dmitry D. Chernov Date: Mon, 10 Apr 2023 19:20:43 +0000 (+1000) Subject: Game: Write CSV-files with round statistics in UTF-8 instead of the default ANSI... X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=3f08ff53795ddfdfc6577e42d2539266ce8355d0;p=d2df-sdl.git Game: Write CSV-files with round statistics in UTF-8 instead of the default ANSI codepage --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index b1a10ea..958023d 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -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 := '';