diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 14c998d1..659b375c 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -822,9 +822,10 @@ class Database: def get_player_id(self, config, siteName, playerName): c = self.connection.cursor() + siteNameUtf = Charset.to_utf8(siteName) playerNameUtf = Charset.to_utf8(playerName) #print "db.get_player_id siteName",siteName,"playerName",playerName - c.execute(self.sql.query['get_player_id'], (playerNameUtf, siteName)) + c.execute(self.sql.query['get_player_id'], (playerNameUtf, siteNameUtf)) row = c.fetchone() if row: return row[0]