Mercurial > hg > MPIWGWeb
changeset 193:522d32a50c2b
bug with umlauts in editing talks and teachung fixed
author | dwinter |
---|---|
date | Thu, 20 Jun 2013 10:54:14 +0200 |
parents | dbc397782c76 |
children | 45984e00665f |
files | MPIWGStaff.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGStaff.py Wed Jun 19 12:56:45 2013 +0200 +++ b/MPIWGStaff.py Thu Jun 20 10:54:14 2013 +0200 @@ -716,7 +716,12 @@ values=["'"+sql_quote(self.getKey())+"'"] for key in newEntries[newEntry].keys(): keys.append(key) - values.append("'"+sql_quote(newEntries[newEntry][key])+"'") + + val = sql_quote(newEntries[newEntry][key]) + if not isinstance(val, unicode): + val = val.decode("utf-8") + + values.append("'"+val+"'") keystring=",".join(keys)