summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-04-24 11:24:04 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-04-24 11:24:04 +0000
commit2c31feb35459e84ac1964030ba46e90038601436 (patch)
treed67b51235281a93fe6b720f862b3b8975f24f0e8 /plugins/Dropbox/src
parentcad229b2e631c7811035ab37ea1a49736dd08f22 (diff)
Dropbox: attempt to fix wrong encoding
git-svn-id: http://svn.miranda-ng.org/main/trunk@16758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src')
-rw-r--r--plugins/Dropbox/src/dropbox.cpp4
1 files 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");