DXF export doesn't work if stencil name use Non UNICODE caracter

Bug #834721 reported by Daniel Burnier on 2011-08-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Alvin Penner

Bug Description

I am Swiss French and using name like "PageRéférence" for a stencil, I obtain this script traceback when I am trying to export to DXF format :

"...
    print self.dxf
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 2908: ordinal not in range(128)
"

But no problem if I change the name by "PageReference" instead of "PageRéférence".

It will be nice to coud use accent caracter too.

Best regards

su_v (suv-lp) wrote :

Could you attach a sample SVG file to be exported to DXF which fails with this error, to allow for easier testing / addressing the issue?

tags: added: dxf encoding exporting
Daniel Burnier (daniel-burnier) wrote :

Here you will find a SVG file with "french" stencil name that could not be exported in DXF format

Alvin Penner (apenner) wrote :

thanks for the file, confirmed on Inkscape 0.48.2

Changed in inkscape:
status: New → Confirmed
Alvin Penner (apenner) wrote :

attached is a new version of the file dxf_outlines.py, which I believe should fix the problem. It contains a new option box to choose the type of encoding of the output. This is the same choice that is offerred on dxf input as well. I would suggest trying the utf-8, to see if it works.

Alvin Penner (apenner) wrote :

also attached is a new version of dxf_outlines.inx. Both these files will need to be placed in the directory Inkscape\share\extensions\ to replace the files that are currently there.

Daniel Burnier (daniel-burnier) wrote :

Hi Alvin,
Thank you a lot.
Your new files correct the problem and that is nice to have the units choice too.

Best regards. Dany

Alvin Penner (apenner) wrote :

good to hear, committed to rev 10606

Changed in inkscape:
status: Confirmed → Fix Committed
su_v (suv-lp) on 2011-09-01
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
importance: Undecided → Medium
milestone: none → 0.49
Krzysztof Kosinski (tweenk) wrote :

Updated extension copied to stable in 9865

Changed in inkscape:
milestone: 0.49 → 0.48.3
Ted Gould (ted) on 2012-02-15
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers