sockets - English C++ program on foreign OS -
sockets - English C++ program on foreign OS -
i have chat scheme works operating systems in english. uses multibyte character set, server drives it.
i have chinese clients utilize program. when messages received, 1 of 2 things happens: if message typed in chinese, spaces aren't displayed. if written english, bits , pieces show foreign characters.
any advice?
as using windows 7 client , windows server 2008 r2 server, don't think issue due alter of "endianness". mentioned utilize "multibyte" character set. assume info not utilize 1 of standard unicode encodings such utf-8/utf-16/utf-32 rather uses pre-unicode style code pages encoding data. if 1 code page used when client enters text chat , displayed different code page on recepient's pc, text may not display properly.
c++ sockets chat translation
Comments
Post a Comment