diff --git a/monitor.py b/monitor.py
index d0c48ff..0a33aa3 100644
--- a/monitor.py
+++ b/monitor.py
@@ -773,18 +773,18 @@ def process_message(_bmessage):
# use >=0 instead of >2 if you want to record all activities
if int(float(p[9])) > 2:
log_lh_message = '{},{},{},{},{},{},{},TS{},TG{},{},{},{}'.format(_now, p[9], p[0], p[1], p[3], p[5], alias_call(int(p[5]), subscriber_ids), p[7], p[8],alias_tgid(int(p[8]),talkgroup_ids),p[6], alias_short(int(p[6]), subscriber_ids))
- lh_logfile = open(LOG_PATH+"lastheard.log", "a")
+ lh_logfile = open(LOG_PATH+"lastheard.log", "a", encoding="UTF-8", errors="ignore")
lh_logfile.write(log_lh_message + '\n')
lh_logfile.close()
# Lastheard in Dashboard by SP2ONG
my_list=[]
n=0
- f = open(PATH+"templates/lastheard.html", "w")
+ f = open(PATH+"templates/lastheard.html", "w", encoding="UTF-8", errors="ignore")
f.write("