Skip to content

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

Description

@chungkang

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions