home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 15512 
 Nicholas Boel to Sebastian Raase 
 High ASCII output with Python 3 - how? 
 13 Jul 23 16:32:28 
 
REPLY: 2:240/8001 a7b3ca5c
MSGID: 1:154/10 64b06dce
CHRS: UTF-8 4
TZUTC: -0500
TID: hpt/lnx 1.9.0-cur 2021-05-15
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)
SEEN-BY: 1/123 15/0 90/1 105/81 106/201 114/705 120/616 123/10 120
SEEN-BY: 123/131 129/215 305 153/7715 154/10 30 40 50 700 218/700
SEEN-BY: 218/840 220/70 90 221/6 226/17 18 30 70 100 227/114 201 229/110
SEEN-BY: 229/112 113 206 275 307 310 317 400 426 428 452 470 550 664
SEEN-BY: 229/700 250/5 8 266/512 267/800 280/464 282/1038 291/111
SEEN-BY: 292/854 298/25 301/1 305/2 3 317/3 320/219 322/757 342/200
SEEN-BY: 396/45 460/58 633/280 712/848 770/1 2320/105 3634/12 5075/35
PATH: 154/10 770/1 317/3 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca