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字符不完整

原文地址:https://www.cnblogs.com/hanframe/p/4146659.html