text format with infinity

54 views
Skip to first unread message

Jon Godbout

unread,
Sep 25, 2024, 12:53:16 PM9/25/24
to Protocol Buffers
Interesting problem, I have a text format printer writing infinity.
My (cl-protobufs) printer wants to write the inifinity symbol, while
c++ wants to write \342\210\236.
Am I wrong they are both correct?

Samuel Benzaquen

unread,
Sep 25, 2024, 6:27:25 PM9/25/24
to Jon Godbout, Protocol Buffers
By default the TextFormat class will escape non-ascii characters.
If you want to print UTF8 characters you can tell the TextFormat::Printer this by calling SetUseUtf8StringEscaping.

--
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 protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/af820eaf-008e-4987-9710-46fdcd977854n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages