1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

test fixes - just case-changes to match code page names, seems to need 'future' pip module

This commit is contained in:
Michael Billington
2016-09-13 20:28:54 +10:00
parent 7a7ea23628
commit 7b68d97f5f
4 changed files with 16 additions and 15 deletions

View File

@@ -145,7 +145,7 @@ class Encoder(object):
:param encoding: Encoding name to use (must be defined in capabilities)
:param defaultchar: Fallback for non-encodable characters
"""
codepage_char_map = self.available_characters[encoding]
codepage_char_map = self._get_codepage_char_map(encoding)
output_bytes = bytes([self._encode_char(char, codepage_char_map, defaultchar) for char in text])
return output_bytes