P
partysingh
Hi,
We have a legacy application sending data. It was written in C++ it
uses wcstombs to converting the data before sending.
When the data ia received in the dot net application using the
System.Net.Socket and when we try to get back the data using UTF8
decoder(System.Text.Encoding.UTF8.GetDecoder) the '£'(Ascii Value 163)
symbols are getting garbled up.
We have an old VB6 code it is using WinSock (with vbstring option) for
receiving the data. Its able to get the data fine.
Upon checking the received stream I have found that the data is coming
correctly i.e. I can see the byte data as 163(Ascii value for £). Upon
decoding to character array the issue is happening.
Let me know folks if you are aware how to fix it.
Thanks,
Mayank
We have a legacy application sending data. It was written in C++ it
uses wcstombs to converting the data before sending.
When the data ia received in the dot net application using the
System.Net.Socket and when we try to get back the data using UTF8
decoder(System.Text.Encoding.UTF8.GetDecoder) the '£'(Ascii Value 163)
symbols are getting garbled up.
We have an old VB6 code it is using WinSock (with vbstring option) for
receiving the data. Its able to get the data fine.
Upon checking the received stream I have found that the data is coming
correctly i.e. I can see the byte data as 163(Ascii value for £). Upon
decoding to character array the issue is happening.
Let me know folks if you are aware how to fix it.
Thanks,
Mayank