Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXF unicode encoded layer names should not raise an exception #782

Closed
chungkang opened this issue Nov 24, 2022 · 3 comments
Closed

DXF unicode encoded layer names should not raise an exception #782

chungkang opened this issue Nov 24, 2022 · 3 comments

Comments

@chungkang
Copy link

Describe the bug
When I'm trying to read dxf file which includes German Umlauts(ä, ö, ü) letters in layer name, it shows the error below.
image

To Reproduce
Information and data needed to reproduce the error:

  1. A simplified Python script which triggers the error.
    doc = ezdxf.readfile("umlaut_layer_test.dxf")

  2. Information about the ezdxf version and the OS.
    dzdxf 0.17.2 / Window 11

  3. If a 3rd party DXF file causes the error, add a simplified and zipped
    dxf

Expected behavior
Checking the error when reading the letter Umlauts ü(Unicode Character: \U+00FC)

@mozman
Copy link
Owner

mozman commented Nov 25, 2022

Can not download and open your DXF file!

This works in the current version of ezdxf:

image

image

@mozman mozman changed the title German Umlauts(ä, ö, ü) cannot be read by ezdxf DXF unicode encoded layer names should not raise an exception Nov 25, 2022
@mozman mozman closed this as completed in a800bf3 Nov 25, 2022
@mozman
Copy link
Owner

mozman commented Nov 25, 2022

The recover module decodes the DXF unicode encoding: \U+00FC -> ü

Documentation of the recover module: https://ezdxf.mozman.at/docs/drawing/recover.html

@chungkang
Copy link
Author

recover module works well. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants