报错
[libprotobuf ERROR e:patchprotobuf-2.5.0srcgoogleprotobufwire_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