# String ToUpper OR ToLower not working with "international characters"

**URL:** <https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452>\
**Category:** Blueprint\
**Tags:** string, unreal-engine, Blueprint, question\
**Created:** [February 24, 2016, 12:49am UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452 "2016-02-24T00:49:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e0ac47fb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e0ac47fb](https://forums.unrealengine.com/u/anonymous_user_e0ac47fb)\
**Post date:** [February 24, 2016, 12:49am UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/1 "2016-02-24T00:49:26Z")

</div>

Making a custom umg widget keyboard. Trying to set-up the CAPS key.  
Simplest form example…

The following characters required for specific language…  
À, à, É, é

From any point in any blueprint… (mine is specifically with in a HUD widget BP)

1. create a MakeLiteralString with Value as any of the above characters
2. convert either ToUpper or ToLower
3. output to - PrintString
4. RESULT - NO CHANGE
5. Change the literal string to “standard character” like A,a,E,e - it works

Trying to loop through children of widget slot to change all key text. Working great except for the special characters as noted.

I could work around by explicitly setting to text change for every key/button. But that is just silly.

Any suggestions would be greatly appreciated?

---

<div class="post-metadata">

**Author:** ![Da\_Stranger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Da\_Stranger](https://forums.unrealengine.com/u/Da_Stranger)\
**Post date:** [March 19, 2017, 12:14pm UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/2 "2017-03-19T12:14:39Z")

</div>

Call this function before game starts and ToUpper() will work correctly:

`  
#include locale

void SetGlobalLocale(const FString aLocale)  
{  
std::locale::global(std::locale(TCHAR\_TO\_UTF8(\*aLocale)));  
}  
`

Add the symbols “\<” and “\>” around the “locale” word in include.

Here are examples of valid locales:

`"en-US" "ru-ru" "fr-fr" "es-es" "de-de" "zh-cn"`

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [March 19, 2017, 8:26pm UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/3 "2017-03-19T20:26:57Z")

</div>

This is a know issue with FString.

As of 4.16 FText supports ToUpper/ToLower in an internationalisation friendly way.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_07566ad6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_07566ad6](https://forums.unrealengine.com/u/anonymous_user_07566ad6)\
**Post date:** [September 26, 2017, 3:32pm UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/4 "2017-09-26T15:32:14Z")

</div>

Hi , we are having the same issue (locked to 4.15) and were wondering if you could isolate the CL’s to grab from the 4.16 repo to get this to work?

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [September 26, 2017, 3:46pm UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/5 "2017-09-26T15:46:33Z")

</div>

I can’t give you a specific CL# as the change was made in one of our internal game branches so came back in a merge.

If you have 4.16 source code you can take a look for `FTextHistory_Transform` and apply that class and its usage to 4.15. Thankfully `Transform` was the next entry in `ETextHistoryType` (after `AsDateTime`) so you shouldn’t run into any serialisation issues there. Also check out `UKismetTextLibrary` for the Blueprint exposure of `FText::ToUpper` and `FText::ToLower`.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_07566ad6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_07566ad6](https://forums.unrealengine.com/u/anonymous_user_07566ad6)\
**Post date:** [September 26, 2017, 3:53pm UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/6 "2017-09-26T15:53:55Z")

</div>

Thanks for the quick reply, i’ll take a look at this and get back to you.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cef79931](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cef79931](https://forums.unrealengine.com/u/anonymous_user_cef79931)\
**Post date:** [November 5, 2018, 11:32am UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/7 "2018-11-05T11:32:22Z")

</div>

How to solve this with blueprint?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cef79931](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cef79931](https://forums.unrealengine.com/u/anonymous_user_cef79931)\
**Post date:** [November 5, 2018, 11:45am UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/8 "2018-11-05T11:45:12Z")

</div>

Forget it. Using ToUpper on the text worked, but not string.

---

<div class="post-metadata">

**Author:** ![Nizami\_Nz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nizami\_Nz](https://forums.unrealengine.com/u/Nizami_Nz)\
**Post date:** [February 1, 2026, 3:12pm UTC](https://forums.unrealengine.com/t/string-toupper-or-tolower-not-working-with-international-characters/348452/9 "2026-02-01T15:12:31Z")

</div>

In my case, (To Lower) and (To Upper) don’t work with other languages ​​(Russian). But if I first convert (String) to (Text) and then call (To Upper), everything works.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/3/2b3c858b7626c8de59717f939ffa372244836d4c.png)
