TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: GitLab note in main/sbbs
from: Rob Swindell
date: 2024-06-30 13:14:00
subject: DDMsgReader: When listing

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
```
--- SBBSecho 3.20-Linux
                  
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.