chiark / gitweb /
Possibly fix the encoding issues with odd locals.
authordaid <daid303@gmail.com>
Tue, 2 Jul 2013 20:22:52 +0000 (22:22 +0200)
committerdaid <daid303@gmail.com>
Tue, 2 Jul 2013 20:22:52 +0000 (22:22 +0200)
Cura/util/profile.py

index b750be8fa49897686956eed3569800b0f8869c89..0fe27476acc057df021928a2895d6aa97433bf6e 100644 (file)
@@ -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':