Opened 10 years ago
Closed 6 years ago
#5681 closed defect (worksforme)
DXF reader copies BlockName without translating
Reported by: | kolesarandras | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
When DXF uses non-ASCII characters, BlockName gets corrupt character encoding. Patch-like quick fix:
ogr/ogrsf_frmts/dxf/ogrdxflayer.cpp:1852 - poFeature->SetField( "BlockName", osBlockName ); + poFeature->SetField( "BlockName", TextUnescape(osBlockName) ); ogr/ogrsf_frmts/dxf/ogrdxfblockslayer.cpp:144 - poFeature->SetField( "BlockName", oIt->first.c_str() ); + poFeature->SetField( "BlockName", ACTextUnescape( oIt->first.c_str(), poDS->GetEncoding() ) ); // (TextUnescape function is not available here)
Change History (3)
comment:1 by , 10 years ago
comment:3 by , 6 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Could you attach a sample DXF that demonstrates the issue ?