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: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (1 / 9) |
Uptime: | 126:16:04 |
Calls: | 12,960 |
Calls today: | 2 |
Files: | 186,574 |
Messages: | 3,265,864 |