X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeString.cpp;fp=src%2FModel%2FModel_AttributeString.cpp;h=6e20020fe9ccb3453ce4408414c762198673ac9f;hb=241b1234365e3f65b9b84c7c8eccf072be54b68c;hp=c212511d26a67a5d410718ec1302848d3f7b3960;hpb=d72659ced7d4046a5142b897f8f5c3652d61dbb9;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeString.cpp b/src/Model/Model_AttributeString.cpp index c212511d2..6e20020fe 100644 --- a/src/Model/Model_AttributeString.cpp +++ b/src/Model/Model_AttributeString.cpp @@ -35,7 +35,9 @@ static const Standard_GUID kUVALUE_IDENTIFIER("04cac509-b2fc-4887-b442-d2a86f2fd void Model_AttributeString::setValue(const std::string& theValue) { - TCollection_ExtendedString aValue(theValue.c_str()); + // Always assume the std::string to be a multi-byte character string + // as it can contain accents or other special characters, too! + TCollection_ExtendedString aValue(theValue.c_str(), true); if (!myIsInitialized || myString->Get() != aValue) { if (myString.IsNull()) myString = TDataStd_Name::Set(myLab, TCollection_ExtendedString());