Skip to content

When converting a DWG file to a DXF file, the Chinese characters are garbled. #622

Open
@tianxin8206

Description

@tianxin8206

Describe the bug
I read a normal DWG file and then converted it into a DXF file, but the Chinese content is displayed abnormally.

To Reproduce
My Code:

var filePath = @"D:\cad2.dwg";
var dxfFilePath = @"D:\cadfile2.dxf";

var cadDocument = DwgReader.Read(filePath);
cadDocument.Header.CodePage = "GB2312";
using var writer = new DxfWriter(dxfFilePath, cadDocument, false);
writer.Write();

Screenshots
normal:

Image

abnormal:

Image


Release needed

  • [ Y ] Yes, using the Nuget package.
  • No, using the github repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions