String field contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.

[libprotobuf ERROR google/protobuf/wire_format.cc:1053] String field contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.

 

原因是中间,用char[]把它截断了,造成utf8字符不完整

posted @ 2014-12-05 14:52  hanframe  阅读(7544)  评论(0编辑  收藏  举报