On Jan 26, 2011, at 3:43 , Hitesh Jethwani wrote:
Can we encode the protobuf data in ISO-8859-1 from the server end itself?

Yes. In this case, you need to use the protocol buffer "bytes" type instead of the protocol buffer "string" type, since you want to exchange ISO-8859-1 bytes from program to program (bytes), not unicode text (string).

On the Java side, you'll need to use ByteString.copyFrom(myStringobject, "ISO-8859-1") to make a ByteString out of a Java string.

Hope this helps,

Evan

--
http://evanjones.ca/

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to