gRPC c++ 字符编码
时间: 2023-10-18 11:27:06 浏览: 110
gRPC使用的是protobuf作为消息传递的格式,而protobuf可以使用多种字符编码。根据引用提供的文档,protobuf消息的编码方式可以是varint编码、固定长度编码或字符串编码。在C++中,字符串编码使用UTF-8编码或者7-bit ASCII编码的文本。而字节编码使用bytes类型,可以包含任意顺序的字节数据。因此,gRPC C++中的字符编码主要是UTF-8编码或者7-bit ASCII编码。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [GRPC C++静态库,头文件](https://download.csdn.net/download/lifei_0001/86260633)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [grpc protoBuf 编码/解码原理](https://blog.csdn.net/u013433591/article/details/127607440)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [grpc C++开发](https://blog.csdn.net/yiwuxiao3767/article/details/120073647)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文