风为裳

导航

2012年8月16日

gSoap VS2008 客户端 中文乱码的解决方案

摘要: 1,设置GSOAP的编码模式soap_set_mode(soap, SOAP_C_UTFSTRING);2,将传输回来的字符流进行字符转换(代码摘要)//soap_call___ns1__sendFile 本人实现的接口函数std::wstring str;std::string str1;int result = soap_call___ns1__sendFile(soap1, NULL, NULL, &ns1_sendFile,&ns1__sendFileResponse);std::string stt = *ns1__sendFileResponse.out;bool 阅读全文

posted @ 2012-08-16 11:38 风为裳 阅读(525) 评论(0) 推荐(0) 编辑