Skip to content

Commit

Permalink
Use SQL_SetCharset instead of SQL Query
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabveer committed Sep 12, 2016
1 parent d929a2e commit d0ee22c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/addons/sourcemod/scripting/sbpp_main.sp
Expand Up @@ -994,7 +994,7 @@ public GotDatabase(Handle:owner, Handle:hndl, const String:error[], any:data)
DB = hndl;

decl String:query[1024];
FormatEx(query, sizeof(query), "SET NAMES \"UTF8\"");
SQL_SetCharset(DB, "utf8");
SQL_TQuery(DB, ErrorCheckCallback, query);

InsertServerInfo();
Expand Down Expand Up @@ -2567,4 +2567,4 @@ stock AccountForLateLoading()
}
}

//Yarr!
//Yarr!

0 comments on commit d0ee22c

Please sign in to comment.