Permalink
Browse files

Fixes #110, coping with unicoded names during sql quiries.

  • Loading branch information...
1 parent 2369ca3 commit 99eff212d7191fbfd34bf48f0e39f2d8b557db9e @othrayte committed Dec 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 utilities.py
View
@@ -83,7 +83,7 @@ def checkSettings(daemon=False):
# SQL string quote escaper
def xcp(s):
- return re.sub('''(['])''', r"''", str(s))
+ return re.sub('''(['])''', r"''", unicode(s))
# make a httpapi based XBMC db query (get data)
def xbmcHttpapiQuery(query):
@@ -93,7 +93,7 @@ def xbmcHttpapiQuery(query):
match = re.findall( "<field>((?:[^<]|<(?!/))*)</field>", xml_data,)
Debug("[httpapi-sql] responce: "+xml_data)
- Debug("[httpapi-sql] matches: "+str(match))
+ Debug("[httpapi-sql] matches: "+unicode(match))
return match

0 comments on commit 99eff21

Please sign in to comment.