Nп/п : 16 из 77
 От   : Nicholas Boel                       2:5075/128        13 июл 23 16:32:28
 К    : Sebastian Raase                                       13 июл 23 01:24:16
 Тема : High ASCII output with Python 3 - how?
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <1689284046@f10.n154.z1.fidonet.org>
8624595e
@REPLY: <2813577820@f8001.n240.z2.fidonet.org>
5076d73e
@REPLYADDR Nicholas Boel
<nospam.Nicholas.Boel@f10.n154.z1.fidonet.org>
@REPLYTO 2:5075/128 Nicholas Boel
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<1689284046@f10.n154.z1.fidonet.org>
@RFC-References:
<2813577820@f8001.n240.z2.fidonet.org>
@TZUTC: 1300
@PID: VSoup v1.2.9.47Beta [95/NT]
@TID: FIDOGATE-5.12-ge4e8b94
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."
--- VSoup v1.2.9.47Beta [95/NT]
 * Origin: Agency HUB, Dunedin - New Zealand (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



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

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