[手游项目2]-2-【libprotobuf ERROR 】Use the 'bytes' type if you intend to send raw bytes.

报错
[libprotobuf ERROR e:\patch\protobuf-2.5.0\src\google\protobuf\wire_format.cc:10
53] String field contains invalid UTF-8 data when serializing a protocol buffer.
 Use the 'bytes' type if you intend to send raw bytes.


点击打开链接
点击打开链接

解决方法:在赋值给probuf的前先把char*转化成string 
 
 
阅读更多

没有更多推荐了,返回首页