I receive a message from a remote device, but the string always have some sort of characters, which makes my string invalid. for instance, say I get the message hello, it would be displayed with either heart, club, spade, or smiley face in front of the text. This messes with the operations that need to be done with that string. How can I get rid of the non ASCII characters in a string?
I don't know if I am looking at this totally wrong?
I need to get rid of that little image in front of the text.
Below I have posted an example on how the text looks before printing to the consoole, which shows a club before the text hello.
"|hello"
Another thing I have just noted now is that when copying this value while debugging in the list, it just gives the value "hello". So why in my list when debugging do I see "|hello", but when copying the value it gives me hello?