From 595e55c6bc048d9c0233354a44ad677131c63680 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 2 Jul 2013 22:22:52 +0200 Subject: [PATCH] Possibly fix the encoding issues with odd locals. --- Cura/util/profile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cura/util/profile.py b/Cura/util/profile.py index b750be8f..0fe27476 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -678,11 +678,11 @@ def replaceTagMatch(m): pre = m.group(1) tag = m.group(2) if tag == 'time': - return pre + time.strftime('%H:%M:%S').encode('utf-8', 'replace') + return pre + time.strftime('%H:%M:%S').encode('ascii', 'replace') if tag == 'date': - return pre + time.strftime('%d %b %Y').encode('utf-8', 'replace') + return pre + time.strftime('%d %b %Y').encode('ascii', 'replace') if tag == 'day': - return pre + time.strftime('%a').encode('utf-8', 'replace') + return pre + time.strftime('%a').encode('ascii', 'replace') if tag == 'print_time': return pre + '#P_TIME#' if tag == 'filament_amount': -- 2.30.2