In my game I will have a ComboBox
with a list of countries, but the list will have the names in each available langues of the game, meaning if the game language is set to english the names in the list will be in english, if the game language is in another one so will be the name of the countries in the list, in which case some languages use UTF8 characters.
The list is created in a C++ function which returns a TArray<FString>
with all the values that are going to be added in the ComboBox
. First I did a basic test to see how it handles UTF8 characters, but the problem is that what I used, doesn’t show the correct values.
The function reduced to what is needed for the test only:
TArray<FString> fileStrings;
for (int i = 0; i < 10; i++) {
//To simulate multiple values for the list that contain UTF8 characters
fileStrings.Add(u8"âîțăîșîé É à À è È ù Ù â Â ê Ê î Î ô Ô û Û ë Ë ï Ï ü Ü ✓");
}
return fileStrings;
And in blueprint I’m just creating a loop on the list and for each element I’m adding it into ComboBox
option. But the result is this:
What do I need to change in order for the correct UTF8 characters to be displayed?