Hello,
I have tried many things to do this conversion, reading Unreal documentation, searching in Source code of Engine… no way.
Here the link that explains how convert std::string to FString in Unreal Doc : Unreal Documentation
It works fine, but when I add special characters…
std::string TestString = "Hèappyé";
FString HappyString(TestString.c_str());
==> Value of HappyString: “H?appy?”
The only way I found to trick this problem is to use the TEXT() property, like this :
std::string TestString = "Hèappyé";
FString HappyString(TEXT(Hèappyé));
std::string MyStdStr(TCHAR_TO_UTF8(*HappyString));
==> Value of HappyString: “Hèappyé”
But… value of MyStdStr: “Hèappyé”.
It seems encoding is impossible in this case…
How fix my problem ?
Thanks in advance.