How to use Russian Laguage in FString/FText?

The first 2 variables compile easily, but the last 2 do not.
As I understand because of the Russian language, what needs to be done to add the Russian language to FString/FText?
image

It should compile fine. Perhaps you need to have English installed along side Russian in your OS?

English is already the 2nd language of my system, I don’t know why it doesn’t work

You didn’t connect any other headers?

What exact error are you getting?
Base class is AActor, no extra headers.

Error: newline in constant

Perhaps it’s a matter of quotation marks or semicolon? Could it be that in Russian it could be encoding them as a different value?
Try pasting this and see it has the same error:

FString bebra = "kaka";
FString bebra2 = TEXT("kaka");
FString bebra3 = "кака";
FString bebra4 = TEXT("кака");

Okay, 5 minuts


Try using the save as function and clicking the arrow icon near save (to get the advanced options = save with encoding).
See if you have the same encoding settings (these compile ok)


Same mistake. Yes, I’ll try now

It’s work!!! Thatks you wery much!!!

1 Like

You’re welcome. Happy coding.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.