Reputation: 1
To receive mixed unicode and ascii characters, do i require a wchar_t
buffer or it can be interpreted from char
buffer which means multibyte i suppose?
Upvotes: 0
Views: 1276
Reputation: 73175
A TCP connection has no concept of character encoding. The data transferred at the TCP level is simply a byte stream.
Most likely (since you mention mixed ASCII and Unicode characters), you are referring to a UTF-8 encoded string. In order to merely store the contents, you can simply use a char
array.
Upvotes: 4