Skip to content

[Bug]: The GetLine() API method has an error in parsing Chinese, which may be caused by Unicode encoding. #949

@sennhvi

Description

@sennhvi

What happened?

I tried to parse this line: #15236= IFCPROPERTYSINGLEVALUE('soil_layer_name',$,IFCIDENTIFIER('\X2\7d20586b571f\X0\'),$); using web-ifc api method like this const props = await this.ifcapi.GetLine(this.modelId as number, id), and I get incorrect text. After I change '\X2\7d20586b571f\X0\' to uppercase '\X2\7D20586B571F\X0\' and then I get correct text, so I think there is something wrong in text parsing part.

Version

0.0.56

What browsers are you seeing the problem on?

Microsoft Edge

Relevant log output

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions