Skip to content

Thai font  #35

@GoogleCodeExporter

Description

@GoogleCodeExporter
How i can print thai character ?

here is my code
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from escpos import *

reload(sys)
sys.setdefaultencoding('UTF8')
str_th = "ลองตัวอักษรไทย"

Espon = printer.Usb(0x04b8,0x0202)
# Espon.set(codepage='cp874',size='2x')
Espon.text(str_th)
Espon.cut()


and i see in file "constants.py" was comment line

  # 'TIS_14' : 21,
  # 'TIS_17' : 22,
  # 'TIS_11' : 23,


Original issue reported on code.google.com by mjitpra...@gmail.com on 30 Jul 2014 at 10:08

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions