best way to transfer multi encoded characters over boost::asio
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.
精彩评论