TIP: Click on subject to list as thread! ANSI
echo: mystic
to: All
from: Sebastian Raase
date: 2023-07-13 11:14:00
subject: High ASCII output with Py

Hi all,

I am looking into developing a DOOR using Python 3.x for Mystic.

However, I cannot use write() or writeln() to output a string containing
special characters (such as „ [ae] ” [oe] á [sz]), they will display
incorrectly. The BBS is running in CP437 and so are clients.

If I encode the characters manually and call write() or writeln() using a
bytestring, the user gets disconnected immediately. This may be a bug.

What is the correct way to get a Python 3.x script to output special
characters in Mystic?

Best Regards,
Sebastian

--- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
                                                                                                                 
* Origin: BlackICE BBS (BlackICE.BBSindex.com:23) (2:240/8001)

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™.