1. Bitbucket
  2. Public Issue Tracker
  3. master


Issue #2170 invalid

how to set another drawing encoding

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)) drawing.save()

P.S. See attachments for changes. Best regards, banza. mailto:banza@i.ua

Comments (3)

  1. Log in to comment