logger.log(logger.MEDIUM, query.lastError());\r
}\r
\r
- QTextCodec codec = QTextCodec.codecForLocale();\r
- codec = QTextCodec.codecForName("UTF-8");\r
- query.bindValue(":content", codec.fromUnicode(content).toString());\r
+// QTextCodec codec = QTextCodec.codecForLocale();\r
+// codec = QTextCodec.codecForName("UTF-8");\r
+// query.bindValue(":content", codec.fromUnicode(content).toString());\r
+ query.bindValue(":content", content);\r
query.bindValue(":guid", guid);\r
\r
check = query.exec();\r
element.setTagName("span");\r
}\r
}\r
- content = doc.toString();\r
+ // Replace the XML carrage returns that the toString() creates.\r
+ content = doc.toString().replace( "
", "" );\r
\r
}\r
// Start looking through the tree.\r