Subj : DDMsgReader: When listing messages via lightbar, check if the subject To : GitLab note in main/sbbs From : Rob Swindell Date : Sun Jun 30 2024 01:14 pm https://gitlab.synchro.net/main/sbbs/-/merge_requests/442#note_5390 I suspect with this change, textIsUTF8 will *always* be `true`. Are you actually seeing messages with subjects that are *not* valid UTF-8? All ASCII strings are valid UTF-8, while not all UTF-8 strings are valid ASCII. You probably mean to write something more like this: ``` str_is_ascii(str) === false && str_is_utf8(str) === true ``` .