TIP: Click on subject to list as thread! ANSI
echo: mystic
to: Sebastian Raase
from: Nicholas Boel
date: 2023-07-13 16:32:00
subject: High ASCII output with Py

Hello Sebastian,

On Thu Jul 13 2023 11:14:18, you wrote to All:

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

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

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

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

If I remember right, Python 3.x doesn't work all that well with Mystic. Try using Python 2.x instead, as I believe that's what was used when support for Python was initially added.

Regards,
Nick

... "Take my advice, I don't use it anyway."
--- GoldED+/LNX 1.1.5-b20230205
                                                           
* Origin: thePharcyde_ distribution system (Wisconsin) (1:154/10)

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