# Convert std::string to FString

**URL:** <https://forums.unrealengine.com/t/convert-std-string-to-fstring/5065>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 27, 2014, 3:04am UTC](https://forums.unrealengine.com/t/convert-std-string-to-fstring/5065 "2014-05-27T03:04:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bob\_Gneu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob\_Gneu](https://forums.unrealengine.com/u/Bob_Gneu)\
**Post date:** [May 27, 2014, 3:17am UTC](https://forums.unrealengine.com/t/convert-std-string-to-fstring/5065/2 "2014-05-27T03:17:12Z")

</div>

> [@Amishashashin;59691](#):
>
> Is there a straightforward way to convert a std::string into an FString?

You should be able to do it with something like:

UTF8\_TO\_TCHAR(str.c\_str())

There are three other important conversion functions available in StringConv.h

Be aware that this conversion is “short lived” and it is suggested that they only be used as function parameters.

---

_[View the full topic](https://forums.unrealengine.com/t/convert-std-string-to-fstring/5065)._
