MYSTIC------------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 44 из 100
 От   : Nicholas Boel                       1:154/10          13 июл 23 16:32:28
 К    : Sebastian Raase                                       13 июл 23 00:36:17
 Тема : High ASCII output with Python 3 - how?
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1:154/10 64b06dce
@REPLY: 2:240/8001 a7b3ca5c
@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/120 18/0 50/109 116/116 120/616 123/0
10 25 180 200 525 755 3001
SEEN-BY: 129/215 135/115 300 153/757 7715 154/10
30 40 50 700 220/90 222/2
SEEN-BY: 226/18 70 227/201 229/310 240/1120 250/1
275/1000 292/854 299/6
SEEN-BY: 301/1 467/888 712/1321 2320/105 3634/0 12
27 56 57 119 5000/111
SEEN-BY: 5001/100 5005/49 5019/40 5020/329 715 830
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5053/51 5061/133 5075/128
5080/102 5083/1 444 5090/958
@PATH: 154/10 3634/12 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх