From: daid Date: Tue, 2 Jul 2013 20:22:52 +0000 (+0200) Subject: Possibly fix the encoding issues with odd locals. X-Git-Tag: 13.10~124 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=595e55c6bc048d9c0233354a44ad677131c63680;p=cura.git Possibly fix the encoding issues with odd locals. --- 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':