how to set another drawing encoding

Issue #2170 invalid
Anonymous created an issue

Hi, can you move ENCODING = 'cp1252' to Drawing class? This let me change default drawing encoding and write text in my encoding:

from dxfwrite import DXFEngine as dxf drawing = dxf.drawing('test.dxf') drawing.ENCODING='cp1251' drawing.add_layer('LINES') drawing.add(dxf.text(u'тест', (0,0,0), 5))

P.S. See attachments for changes. Best regards, banza.

Comments (3)

  1. Log in to comment