Download

ISO-8859-1 format issues

Hi.
I am trying to receive a response from a server. The server sends the data in ISO-8859-1 format. Because of this, characters like ", ’ are being shown as ?. Can I do something to fix that?

Any help would be greatly appreciated.

Hmm that is weird. Afaik ISO-8859-1 (aka Latin1 I believe?) includes those characters and should return them just fine.
For ",’ I believe the hex codes in ISO-8859-1 should be respectively 22, 2C and 27.

What format are you using when you read out the received data?

it might be that you are not decoding the data correctly, unreal works internally with UTF-16 LE. When you receive for example UTF-8 characters you have to convert them fist to TCHAR, this can be achieved with some nice macros such as UTF8_TO_TCHAR, there are a lot more that might help you, they are all in form of TO_TCHAR or TCHAR_TO