开发者

best way to transfer multi encoded characters over boost::asio

开发者 https://www.devze.com 2023-04-06 20:43 出处:网络
I want to transfer xml in 开发者_如何学Csingle byte characters, but some of the values will be in unicode.

I want to transfer xml in 开发者_如何学Csingle byte characters, but some of the values will be in unicode. i.e.

<value>Unicode string</value>

I'm using boost::asio.


Network/Socket transfer => single byte encoding XML => mostly UTF-8

Conclusion: convert everything to UTF-8 before pushing it to boost::asio.

0

精彩评论

暂无评论...
验证码 换一张
取 消