ifcplusplus icon indicating copy to clipboard operation
ifcplusplus copied to clipboard

Fix reading files with apostrophe in the header section.

Open AlexVlk opened this issue 3 years ago • 1 comments

Fix two problems.

  1. Header reader failes on user name with apostrophe: FILE_NAME('1.ifc','2022-01-28T15:23:18',('admin\X\27'),(''),'IfcPlusPlus','','');

  2. Duplicating \ or ' when read string atributes of entites: #53= IFCCOLUMN('2Vl8RxOHj99fWB7IRf2gY0',$,'Column1',$,$,#58,#81,'\\',$);

ISO 10303-21 standard states that: A string shall be encoded as an apostrophe "'", followed by zero or more characters from the basic alphabet, and ended by an apostrophe "'". The null string (string of length zero) shall be encoded by two consecutive apostrophes "''". Within a string, a single apostrophe shall be encoded as two consecutive apostrophes. Within a string, a single reverse solidus "\" shall be encoded as two reverse solidi "\\".

AlexVlk avatar Feb 16 '22 15:02 AlexVlk

Any traction here ?

luzpaz avatar Jan 17 '24 13:01 luzpaz

Should be solved with latest update

ifcquery avatar Apr 30 '24 15:04 ifcquery