On Oct 18, 9:07 pm, "[email protected]" <[email protected]> wrote: > The Language Guide describes the "string" scalar data type as "A > string must always contain UTF-8 encoded or 7-bit ASCII text." does > this include the ASCII control character below 0x20? At least XML does > not allow these characters (but three of them) - there is no way to > serialize such a string in XML > (seehttp://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-Char > for allowed Unicode codes).
Yes since UTF-8 includes 128 ASCII which would include the control character and anything else. http://en.wikipedia.org/wiki/UTF-8 > I also like to know whether the float and double types represent the > floating point number as defined by IEEE 754 including its special > values signaling NaN, quiet NaN, -0.0, -Inf, +Inf or do this values > get lost on serialization? Yes since NaN, quiet NaN, -0.0, -Inf, +Inf are all part of the encoding scheme as part of IEEE 754 http://en.wikipedia.org/wiki/IEEE_754-2008 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---
