Announcement

Collapse
No announcement yet.

Random Chinese Chars at the end of my FString?

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

    Random Chinese Chars at the end of my FString?

    I am grabbing a Socket's FName, and storing it in an FString variable for later use.
    (via AttachmentName.ToString())

    Im getting a rare crash in which the resulting string has a couple random Chinese chars at the end of it.

    How/Why does this happen and how can I prevent it?

    #2
    it is not Chinese characters, (well I guest ), you are trying to read more bytes than you actual sent, all that extra characters are bytes interpreted as garbage, clamp your Recv function to only receive the same amount you are sending

    Comment

    Working...
    X