I’m sending string “1234$” every second, it reveives fine, but when I read new line, old line breaks.
I can figure that it’s because of some encodings but I can’t fix it.
Please help
…but those scandinavian charachters was not shown at all.
I can’t understand why it’s correct when firstime inserted to TextArea, but when read from textarea and add again, it’s messed…
Just speculating: The first time you are appending a string of unknown encoding, the string you are appending to is empty and the empty string, if I remember correctly, always has an ASCII encoding (at least that was the case when Xojo was still REALbasic). The next time the text in TextArea1 will be UTF8-encoded so you are appending a string of unknown encoding to an UTF8-encoded string.
Is textarea always utf8? If I read using encoding isolatin1, and then place it to textarea, it’s converted to utf8? Or if I place it to string variable, is it still isolatin1 or utf8?