From 6a4fbc191fea62f07e25a58f077ec74ab3967f7e Mon Sep 17 00:00:00 2001 From: freeyoung Date: Fri, 14 Mar 2014 02:05:41 +0800 Subject: [PATCH] add Chinese support via cp936 --- escpos/escpos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index ed9b3d3..c5457b9 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -206,7 +206,7 @@ class Escpos: def text(self, txt): """ Print alpha-numeric text """ if txt: - self._raw(txt) + self._raw(txt.encode('cp936')) else: raise TextError()