diff --git a/sitecustomize.py b/sitecustomize.py new file mode 100644 index 0000000000..1d199caf7d --- /dev/null +++ b/sitecustomize.py @@ -0,0 +1,11 @@ +""" +This file sets the default encoding for the codebase to +UTF-8 instead of ascii. This allows for just about any +language to be used in-game. + +It is not advisable to change the value set below, as +there will be a lot of encoding errors that result in +server crashes. +""" +import sys +sys.setdefaultencoding('utf-8') \ No newline at end of file diff --git a/src/session.py b/src/session.py index 2f2868b130..f307dc9662 100755 --- a/src/session.py +++ b/src/session.py @@ -78,12 +78,6 @@ class SessionProtocol(StatefulTelnetProtocol): Any line return indicates a command for the purpose of a MUD. So we take the user input and pass it to this session's pobject. """ - try: - test = u"%s" % data - except UnicodeDecodeError: - self.msg("Couldn't parse that - one or more characters were not recognized.") - return - if self.pobject: # Session is logged in, run through the normal object execution. self.pobject.execute_cmd(data, session=self)