[手游项目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 
 
 
posted @ 2018-04-16 10:13  byfei  阅读(133)  评论(0编辑  收藏  举报