aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces')
-rwxr-xr-xinterfaces/email/interactive/be-handle-mail6
1 files changed, 4 insertions, 2 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail
index d8aafb2..e8de7ca 100755
--- a/interfaces/email/interactive/be-handle-mail
+++ b/interfaces/email/interactive/be-handle-mail
@@ -46,7 +46,8 @@ _THIS_DIR = os.path.abspath(os.path.dirname(__file__))
BE_DIR = _THIS_DIR
LOGPATH = os.path.join(_THIS_DIR, "be-handle-mail.log")
LOGFILE = None
-ENCODING = libbe.encoding.get_encoding()
+#ENCODING = libbe.encoding.get_encoding()
+ENCODING = "utf-8"
ALLOWED_COMMANDS = ["new", "comment", "list", "show", "help"]
@@ -232,7 +233,8 @@ def open_logfile(logpath=None):
LOGPATH = os.path.join(_THIS_DIR, logpath)
if LOGFILE == None and LOGPATH != "none":
LOGFILE = codecs.open(LOGPATH, "a+", ENCODING)
-
+ LOGFILE.write("Default encoding: %s\n" % ENCODING)
+
def close_logfile():
if LOGFILE != None and LOGPATH not in ["stderr", "none"]:
LOGFILE.close()