Reading language-specific characters from Socket - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Reading language-specific characters from Socket

oguzkurtoguzkurt Posts: 1Member
I have to read some turkish characters from scket but i am not able to do this.
Setting decoder to UTF8 did not solve the problem. When the character received the event raised but

System.Text.Decoder d = System.Text.Encoding.UTF8.GetDecoder();
int charLen = d.GetChars(m_DataBuffer, 0, iRx, chars, 0);

charlen here is 0, so nothing can be decoded.

How can I solve this problem? Anybody can help?

thanks in advance
Sign In or Register to comment.