From 5a692370051844e966a42abcfc48beae75112539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 18 Jan 2014 14:13:43 +0100 Subject: Fix utf8 and html entities handling in CalDAV and CardDAV resources --- tderesources/caldav/writer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tderesources/caldav/writer.h') diff --git a/tderesources/caldav/writer.h b/tderesources/caldav/writer.h index 437eeed0e..893fc0e81 100644 --- a/tderesources/caldav/writer.h +++ b/tderesources/caldav/writer.h @@ -156,7 +156,7 @@ protected: int pushObjects(const TQString& data, Operation op, int okCode, runtime_info* RT) { int r = okCode; if (!data.isNull() && !data.isEmpty()) { - r = op(std::string(data.ascii()).c_str(), std::string(url().ascii()).c_str(), RT); + r = op(std::string(data.utf8()).c_str(), std::string(url().ascii()).c_str(), RT); } return r; } @@ -166,7 +166,7 @@ protected: int pushTasksObjects(const TQString& data, Operation op, int okCode, runtime_info* RT) { int r = okCode; if (!data.isNull() && !data.isEmpty()) { - r = op(std::string(data.ascii()).c_str(), std::string(tasksUrl().ascii()).c_str(), RT); + r = op(std::string(data.utf8()).c_str(), std::string(tasksUrl().ascii()).c_str(), RT); } return r; } @@ -176,7 +176,7 @@ protected: int pushJournalsObjects(const TQString& data, Operation op, int okCode, runtime_info* RT) { int r = okCode; // if (!data.isNull() && !data.isEmpty()) { -// r = op(std::string(data.ascii()).c_str(), std::string(journalsUrl().ascii()).c_str(), RT); +// r = op(std::string(data.utf8()).c_str(), std::string(journalsUrl().ascii()).c_str(), RT); // } return r; } -- cgit v1.2.1