Missing letters in strings

Steffen Günther's icon

Hi everyone,
I am outputting strings stored in a coll object that were read from a text file. Somehow random letters of some strings are missing no matter what I use to display (message boxes, comments, even if I use print). As soon as I highlight the output string it does not show the same errors but it snaps back to being flawed after it is not highlighted anymore.
I have the same issue on windows and on mac - using Max 8.5.3. Curious if anyone knows something about that. Help greatly appreciated.

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

you are suffering from ascii char 65279 (Zero Width No-Break Space)
also known as byte order mark.
probably generated in CSV file.
Max seems not to like it much.

https://www.codetable.net/decimal/65279
https://techwelkin.com/how-to-remove-byte-order-mark-bom-characters

and so on

pdelges's icon

Hi Source Audio,

Interesting to know but there must be other annoying chars… As you can see on this screenshot, the probe on the patchcord is correct but not the content of the chooser object (or a message box).

There is no 65279 in the initial message but as you can see it is full of those horrible emojies and other crap from tweets.

Source Audio's icon

well, I don't know about what all is annoying, if one wants to use any text in max,
then maybe pass only "wished" ascii chars ...

that coll in Günthers patch had 65279 which caused output problems

Steffen Günther's icon

It works like a charm now.
Thank you so much for the insight Source Audio!