Closed GoogleCodeExporter closed 9 years ago
The reason for the error is because you have a strange symbol in the text, it's
the apostrophe in "buildings" in the second line (my browser can't display it
either); it's likely a special non-ascii symbol on your keyboard.
That said, Evennia (and Django) supports non-ascii characters by internally
using the full unicode set, so this should not cause a traceback ... It is
possible that the batch-process commands do not pass through the same filters
as text entered on the command line does. I'll look into that, thanks!
.
Griatch
Original comment by griatch
on 3 Sep 2010 at 2:25
This is handled in r1038, although it turns out it's probably impossible to
actually fully resolve. The error comes from your batchfile containing a
non-ascii character while not being saved in the UTF-8 encoding that Evennia
(and Python) needs. The telnet protocol is a known encoding to us, which is why
it works for you on the console, but not in the batchprocessor reading an
arbitrary file. It's unfortunately a very difficult problem to determine which
encoding a file is in just by looking at it, so we have to assume one. UTF-8 is
the Python- and international standard.
If you save the batchfile in UTF-8 it is read and parsed just fine - how to do
this is different for every text editor however.
r1038 adds a more useful error message on how to resolve this, rather just
dumping a traceback. I'll also add a section on it to the documentation.
Original comment by griatch
on 4 Sep 2010 at 8:06
Original issue reported on code.google.com by
john.edw...@gmail.com
on 3 Sep 2010 at 2:14Attachments: