星海's Blog

老头初学编程
C++ Templates FAQ(转)
Qt = Cute Great LoveIt 之Json TreeWidget的生成 与QHttpMultiPart

gsoap 2.8.x 的中文第一字节乱码问题。

星海 posted @ 2013年3月13日 23:50 in 通用知识 , 2401 阅读

webservice SOAP开发gsoap是首选,但在Ubuntu/Chkra Linux上,soap_dom_element处理中文字符串都会出现问题,翻找了网上所有解决文档,如wchar */ UTFSTRING/MBSTRING均不能解决。
具体表现是多字节UTF-8文字,在字符串存储时,第一个文字乱码。
经DEBUG,发现, 第一个文字前多了一个BYTE,十六进制表示为0XC3,第一个文字的第一个BYTE的前4比特也有错误。
其他均正常。


后来总算找到了解决方法。。。。。升级到2.8.11或之后版本就可以了。。-_______-。。。

是stdsoap2.c中soap_peek_element函数的BUG,由官方修正。
 

Avatar_small
전설 서구 说:
2021年3月04日 16:39

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers movies123

Avatar_small
Assam 10th Blueprint 说:
2021年10月14日 14:05

Students Download SEBA HSLC model paper 2022 Pdf Available at Official Website Only, SEBA is the state level authority for Conducting Examination and Providing assurance for the quality of education Assam 10th Blueprint 2022 imparted in schools within Assam, Assam Conduct 10th class Examination in 33 Administrative Geographical units called Districts wise. SEBA 10th Exam are held in Month of March Annually and Private and Regular Students Participate in Assam HSLC Examination every year more than lakhs of students. SEBA HSLC Exam is conducted by the Secondary Education Board of Assam Only.

Avatar_small
tainiomania 说:
2022年4月25日 16:42

This is a very good tip, especially to those new to blogosphere, brief and accurate information… Thanks for sharing this one. A must-read article. <a href="https://fishyfacts4u.com/tainiomania/">euphoria tainiomania</a>

Avatar_small
euphoria tainiomania 说:
2022年4月25日 16:43

Wonderful goods from you, man. I have to understand your stuff previously and you’re just too wonderful. I actually like what you’ve acquired here, certainly like what you are saying and the way in which you say it. You make it enjoyable and you still take care to keep it sensible. I can not wait to read far more from you. This is actually a wonderful website.

Avatar_small
tainiomania 说:
2022年5月08日 15:03

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I’ve got you bookmarked to look at new stuff you post… <a href="https://www.xoxowebsites.com">먹튀사이트</a>

Avatar_small
Cyber Security Inter 说:
2022年8月09日 15:17

One thing you should understand is that there is no precise and standalone site where you will be able to find only Cyber Security Internships right away. But we have found some of the best sites online that you will be able to browse to find out the best Internship option for the Cyber Security role. Cyber Security Internships Cyber Security is a broader term coined into to understand the main role of security maintenance of the IT companies when it comes to the Cyber unit, which is the cloud connection.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter