#endif
COServerResponse AddContactResponse = ConnObjectIter->second->AddContact(StringURLIter->second.ToStdString(),
- StringDataIter->second.ToStdString());
+ std::string(StringDataIter->second.ToUTF8()));
if (AddContactResponse.RequestResult != COREQUEST_OK){
iter->second = 2;
// Upload the data to the server.
COServerResponse EditContactResponse = ConnObjectIter->second->EditContact(StringURLIter->second.ToStdString(),
- StringDataIter->second.ToStdString());
+ std::string(StringDataIter->second.ToUTF8()));
if (EditContactResponse.RequestResult != COREQUEST_OK){
iter->second = 2;
break;
}
- // TODO: Continue from here!
-
ETagServer = wxString::FromUTF8(ServerEntityTag.EntityTag.c_str());
if (ETagOriginal != ETagServer){
// Decided to use client version.
- COServerResponse EditContactResponse = ConnObjectIter->second->EditContact(vCardAdd[vi].ToStdString(), ClientData.WriteString().ToStdString());
+ COServerResponse EditContactResponse = ConnObjectIter->second->EditContact(vCardAdd[vi].ToStdString(), std::string(ClientData.WriteString().ToUTF8()));
if (EditContactResponse.RequestResult != COREQUEST_OK){
iter->second = 2;
// Upload the data to the server.
- COServerResponse AddContactResponse = ConnObjectIter->second->AddContact(vCardAdd[vi].ToStdString(), TaskData.ToStdString());
+ COServerResponse AddContactResponse = ConnObjectIter->second->AddContact(vCardAdd[vi].ToStdString(), std::string(TaskData.ToUTF8()));
if (AddContactResponse.RequestResult != COREQUEST_OK){
iter->second = 2;
// Decided to use client version.
- COServerResponse EditContactResponse = ConnObjectIter->second->EditContact(vCardAdd[vi].ToStdString(), ClientData.WriteString().ToStdString());
+ COServerResponse EditContactResponse = ConnObjectIter->second->EditContact(vCardAdd[vi].ToStdString(), std::string(ClientData.WriteString().ToUTF8()));
if (EditContactResponse.RequestResult != COREQUEST_OK){
iter->second = 2;
// Upload the data to the server.
- COServerResponse AddContactResponse = ConnObjectIter->second->AddContact(vCardAdd[vi].ToStdString(), TaskData.ToStdString());
+ COServerResponse AddContactResponse = ConnObjectIter->second->AddContact(vCardAdd[vi].ToStdString(), std::string(TaskData.ToUTF8()));
if (AddContactResponse.RequestResult != COREQUEST_OK){
iter->second = 2;