c++ - The send function in windows socket can only send char *, but my project encoding is unicode?
迷茫
迷茫 2017-05-16 13:21:36
0
1
739
send( _In_ SOCKET s, _In_reads_bytes_(len) const char FAR * buf, _In_ int len, _In_ int flags );

It is found that when it is converted into multi-byte transmission, the server side will have garbled characters. . .

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (1)
習慣沉默

Does the server follow multi-byte decoding? If you want correct communication results, please ensure that the client and server use the same character encoding and decoding scheme

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!