DiscussionsIssue archiveOCCT:Data Exchange

Archived issue #0033355

Data Exchange - SetLayer incorrect string

CommunityOCCT:Data Exchangeclosed3 public notes

Search issues

Description

    TCollection_AsciiString extStr("你好.xbf");
    _layerTool->SetLayer(mb, extStr);


    _layerTool->SetLayer(mb, "你好.xbf");

Two different errors, Please see the attachment

Public activity

3 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Dear Commenter 3
Please attahe a file. There is problem with attaching in creating stage.
02Commenter 2
Dear Commenter 3
There the same problem with your previous ticket - 'const char*' parameter.
So, in this case you need to create the own variable TCollection_ExtendedString aPath("你好.xbf", true) and use it.
The other solution - use 'wchar_t' or 'char16'_t istdead of 'const char'. "你好.xbf" - const char by default that is not correct
03Commenter 2
Dear Commenter 4
please close the issue