# Change TCHAR representation

**URL:** <https://forums.unrealengine.com/t/change-tchar-representation/489036>\
**Category:** Platform & Builds\
**Tags:** fstring, unreal-engine, question\
**Created:** [September 21, 2021, 12:57pm UTC](https://forums.unrealengine.com/t/change-tchar-representation/489036 "2021-09-21T12:57:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_62ce24d9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_62ce24d9](https://forums.unrealengine.com/u/anonymous_user_62ce24d9)\
**Post date:** [September 21, 2021, 12:57pm UTC](https://forums.unrealengine.com/t/change-tchar-representation/489036/1 "2021-09-21T12:57:14Z")

</div>

In the documentation it says that TCHAR can be ANSICHAR or WIDECHAR, in my case it is WIDECHAR. Is there any way to change it to ANSICHAR?

---

<div class="post-metadata">

**Author:** ![KuroPhoenix7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KuroPhoenix7](https://forums.unrealengine.com/u/KuroPhoenix7)\
**Post date:** [September 22, 2021, 11:35am UTC](https://forums.unrealengine.com/t/change-tchar-representation/489036/2 "2021-09-22T11:35:50Z")

</div>

have you tried the macro provided by ue4  
TCHAR\_TO\_ANSI(str)

[CharacterEncoding](https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/ProgrammingWithCPP/UnrealArchitecture/StringHandling/CharacterEncoding/)
