mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030694: Data Exchange - support non-standard GB2312-encoded STEP files
STEPCAFControl_Reader::SourceCodePage() - added property defining text encoding for converting names within STEPCAFControl_Reader::ReadNames() method. Added associated "read.stepcaf.codepage" parameter, which default value is Resource_UTF8, preserving current behavior. Resource_FormatType enumeration has been extended by UTF8 and SystemLocale values. Resource_Unicode - added conversion methods taking Resource_FormatType as argument. GetName command has been corrected to NOT replace non-Latin symbols.
This commit is contained in:
@@ -105,8 +105,7 @@ static Standard_Integer DDataStd_GetName (Draw_Interpretor& di,
|
||||
if(!N.IsNull())
|
||||
cout << "String = " << TCollection_AsciiString(N->Get(), '?').ToCString() << endl;
|
||||
#endif
|
||||
TCollection_AsciiString s(N->Get(),'?');
|
||||
di << s.ToCString();
|
||||
di << N->Get();
|
||||
return 0;
|
||||
}
|
||||
di << "DDataStd_SetName : Error\n";
|
||||
|
Reference in New Issue
Block a user