use unicode for all sql statements and arguments
This commit is contained in:
parent
77096ddb17
commit
392504e239
2 changed files with 33 additions and 30 deletions
|
|
@ -66,5 +66,6 @@ for more information visit https://wiki.0x2620.org/wiki/pandora_client''' % ', '
|
|||
}, f, indent=2)
|
||||
pandora_client.DEBUG = opts.debug
|
||||
c = pandora_client.Client(opts.config, offline)
|
||||
getattr(c, action)(args[1:])
|
||||
args = [a.decode('utf-8') if isinstance(a, str) else a for a in args[1:]]
|
||||
getattr(c, action)(args)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue