Skip to content

Commit a2f6d4d

Browse files
author
Dominic Hofer
committed
encodes apostrophe in 'encodeStepString(..)'
1 parent 853cc32 commit a2f6d4d

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)