Announcement

Collapse
No announcement yet.

ISO-8859-1 format issues

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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?

    Comment


      #3
      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_
      Sr. Engine Programmer @ www.playspace.com - moritzwundke.com
      Remember: be polite and respect other peoples opinions - Join the Unofficial Unreal Discord Channel - Found a bug? Then use the Bug Report Form to get it fixed ^^

      Comment

      Working...
      X