Browse Source

Fix for encoding problems with barcode-display (fixes #26)

Sebastian Lohff 10 years ago
parent
commit
738b8cf240
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      client-barcode/freitagskasse.py

+ 2
- 2
client-barcode/freitagskasse.py View File

@@ -122,12 +122,12 @@ def item_info_page(item):
122 122
 	print('und kostet')
123 123
 	print()
124 124
 	if item.deposit > 0:
125
-		myDisplay.display_screen("PREISINFO","%s: %4.2f Euro (%4.2f Euro Pfand)" % (item.name,item.price,item.deposit))
125
+		myDisplay.display_screen("PREISINFO","%s: %4.2f Euro (%4.2f Euro Pfand)" % (asciify(item.name), item.price, item.deposit))
126 126
 		print(indent + '%s%4.2f Euro%s + %4.2f Euro Pfand  = %s%4.2f Euro%s .' \
127 127
 				% (COLOR_SOME, item.price, COLOR_RESET, item.deposit,
128 128
 				COLOR_MUCH, item.price + item.deposit, COLOR_RESET))
129 129
 	else:
130
-		myDisplay.display_screen("PREISINFO","%s: %4.2f Euro" % (item.name,item.price))
130
+		myDisplay.display_screen("PREISINFO","%s: %4.2f Euro" % (asciify(item.name), item.price))
131 131
 		print(indent + '%s%4.2f Euro%s .' \
132 132
 				% (COLOR_MUCH, item.price, COLOR_RESET))
133 133
 	print()

Loading…
Cancel
Save