Skip to content

Commit aa90dfb

Browse files
authored
Merge pull request ifcquery#119 from PanicSheep/WriterUtil
encodes apostrophe in 'encodeStepString(..)'
2 parents d3c6bd0 + a2f6d4d commit aa90dfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

IfcPlusPlus/src/ifcpp/writer/WriterUtil.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ std::string encodeStepString( const std::wstring& str )
4646
// encode carriage return
4747
result_str.append( "\\X\\0D" );
4848
}
49+
else if( append_char == 39 )
50+
{
51+
// encode apostrophe
52+
result_str.append( "\\X\\27" );
53+
}
4954
else if( append_char == 92 )
5055
{
5156
// encode backslash

0 commit comments

Comments
 (0)