From 2c31feb35459e84ac1964030ba46e90038601436 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 24 Apr 2016 11:24:04 +0000 Subject: Dropbox: attempt to fix wrong encoding git-svn-id: http://svn.miranda-ng.org/main/trunk@16758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp index 2ceda25e0a..907986095e 100644 --- a/plugins/Dropbox/src/dropbox.cpp +++ b/plugins/Dropbox/src/dropbox.cpp @@ -90,8 +90,8 @@ void CDropbox::RequestAccountInfo(void *p) JSONNode name = root.at("name"); if (!name.empty()) { - db_set_s(hContact, MODULE, "FirstName", name.at("given_name").as_string().c_str()); - db_set_s(hContact, MODULE, "LastName", name.at("surname").as_string().c_str()); + db_set_ts(hContact, MODULE, "FirstName", ptrT(mir_utf8decodeT(name.at("given_name").as_string().c_str()))); + db_set_ts(hContact, MODULE, "LastName", ptrT(mir_utf8decodeT(name.at("surname").as_string().c_str()))); } JSONNode country = root.at("country"); -- cgit v1.2.3