Fix encoding issues
@@ -6404,7 +6404,7 @@ class MySQLDatabaseProxy(DatabaseProxy.DatabaseProxy):
def addExternalDocument(self,parameters):
docId = self.newId()
- docName = self.conn.escape_string(parameters.name())
+ docName = self.conn.escape_string(parameters.name().replace(u"\u2018", "'").replace(u"\u2019", "'").replace(u"\u2013", "-"))
docVersion = parameters.version()
docDate = self.conn.escape_string(parameters.date())
docAuthors = self.conn.escape_string(parameters.authors())
@@ -6447,7 +6447,8 @@ class MySQLDatabaseProxy(DatabaseProxy.DatabaseProxy):
def addDocumentReference(self,parameters):
refId = self.newId()
refName = parameters.name()
- docName = parameters.document()
+ refName = self.conn.escape_string(parameters.name().replace(u"\u2018", "'").replace(u"\u2019", "'").replace(u"\u2013", "-"))
+ docName = self.conn.escape_string(parameters.document().replace(u"\u2018", "'").replace(u"\u2019", "'").replace(u"\u2013", "-"))
cName = parameters.contributor()
refExc = parameters.description()
try:
