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 Even Rouault, 10 years ago

Could you attach a sample DXF that demonstrates the issue ?

comment:2 by Alan Thomas, 6 years ago

Can't reproduce this any more.

comment:3 by Alan Thomas, 6 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.