On Monday, November 30, 2015 at 11:28:53 AM UTC-8, Bee Boon wrote: > > I have a static string object and in one method I call > > s.serializeToString(&myStaticStrObj); > > and later in another method I call > > > s.ParseFromString(myStaticStrObj); > > But the latter always returns false > > Debugging shows that the string object is the same in both cases. > Can you post the content of your message? (call DebugString() on the message and paste the output). If your proto has invalid UTF-8 encoded data in string fields, it will fail the parsing even it can be successfully serialized.
-- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
