Convert std::string to FString

Hi there!

[FONT=Comic Sans MS]**Welcome to the forums! **

You should post more often, you are a very eloquent writer!

You’re welcome!

:slight_smile:


Regarding your q:

This was the best answer I saw, for writable char * see the thread itself;
http://stackoverflow.com/questions/347949/how-to-convert-a-stdstring-to-const-char-or-char

for **readonly** char* you can use this:



```


FString UE4Str = "UE4 C++"; 

//FString to std::string
std::string Your_Cstr(TCHAR_TO_UTF8(*UE4Str)):

//char*
const char * ReadOnlyCharPtr = Your_Cstr.c_str();


```



Rama