Convert wchar_t(with russian characters) to FString

Hello. The whole gameplay of my game will be that the player enters commands in Russian, and his character performs these commands. Problems begin at the very beginning. In the widget designer, the Russian text is displayed normally, but when I try to enter text through the code, like that

FString str = FString(TEXT("строка на русском"));


FString str = FString(L"строка на русском");

I get a compilation error.

Please, help me!