From 6a3587e92e5183fbbc10d319bf2bf86c0d96f555 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Sun, 11 Jul 2010 00:37:32 +0200 Subject: [PATCH] failed attempt at making SQLite accept non-ASCII player names for this --- pyfpdb/Database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]