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?
What is the correct way to get a Python 3.x script to output special
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.
Sebastian Raase wrote to Nicholas Boel <=-
It would be really nice if Mystic could take the incoming strings
(which, in Python 3.x, are always UTF-8) and convert them to the
correct codepage. Same for handling input. That way, all the
encoding mess would be taken care of outside the plugins.
Dreaming is still allowed, isn't it?
I haven't found any (current) source code for Mystic, so I can't
fix it.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 368 |
Nodes: | 16 (2 / 14) |
Uptime: | 87:39:59 |
Calls: | 7,895 |
Calls today: | 1 |
Files: | 12,968 |
Messages: | 5,792,158 |