# \#fstring

**URL:** https://forums.unrealengine.com/tag/fstring/232.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Conversion of Enum to String](https://forums.unrealengine.com/t/conversion-of-enum-to-string/337869)

<div class="topic-metadata">

**Author:** [@joelComberiati](https://forums.unrealengine.com/u/joelComberiati)\
**Replies:** 28\
**Last updated:** [March 5, 2024, 9:05am UTC](https://forums.unrealengine.com/t/conversion-of-enum-to-string/337869 "2024-03-05T09:05:39Z")

</div>

Hello, So I have been trying to convert my Enumeration values to an FString. I followed this post: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums and ended up with this: FString get…

---

## [Slate AssetPicker SObjectPropertyEntryBox .ObjectPath () FString to FString cast error](https://forums.unrealengine.com/t/slate-assetpicker-sobjectpropertyentrybox-objectpath-fstring-to-fstring-cast-error/482553)

<div class="topic-metadata">

**Author:** [@Crakmaks](https://forums.unrealengine.com/u/Crakmaks)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 4:29pm UTC](https://forums.unrealengine.com/t/slate-assetpicker-sobjectpropertyentrybox-objectpath-fstring-to-fstring-cast-error/482553 "2022-09-27T16:29:07Z")

</div>

Hey everyone, I’m still trying to get my assetpicker for my plugin working. I want to see the chosen asset and therefore need to provide it with an ObjectPath. It expects a FString my delegate is of type FString and it’…

---

## [StringToBytes/BytesToString broken for some characters](https://forums.unrealengine.com/t/stringtobytes-bytestostring-broken-for-some-characters/365345)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_33e74471](https://forums.unrealengine.com/u/anonymous_user_33e74471)\
**Replies:** 10\
**Last updated:** [June 21, 2022, 11:53am UTC](https://forums.unrealengine.com/t/stringtobytes-bytestostring-broken-for-some-characters/365345 "2022-06-21T11:53:40Z")

</div>

Haya, I’m trying to use StringToBytes to convert a string into a byte array so I can encrypt it, but it seems like some unicode characters cause overflows that give a different string when we call BytesToString on the o…

---

## [How to correct serialize Protobuf?](https://forums.unrealengine.com/t/how-to-correct-serialize-protobuf/488970)

<div class="topic-metadata">

**Author:** [@Vasyl\_Khvostyk](https://forums.unrealengine.com/u/Vasyl_Khvostyk)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 2:18am UTC](https://forums.unrealengine.com/t/how-to-correct-serialize-protobuf/488970 "2022-04-26T02:18:26Z")

</div>

Environment: Unreal Engine 5 Windows 10 Protocol Buffers v3.18.0 I’m trying to decode serialized data in Unreal Engine 5 (c++) by using protoc. If the message contains the value of int var less than 127 everything is …

---

## [Change TCHAR representation](https://forums.unrealengine.com/t/change-tchar-representation/489036)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_62ce24d9](https://forums.unrealengine.com/u/anonymous_user_62ce24d9)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 11:35am UTC](https://forums.unrealengine.com/t/change-tchar-representation/489036 "2021-09-22T11:35:50Z")

</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?

---

## [Find() for an FString array always returns -1?](https://forums.unrealengine.com/t/find-for-an-fstring-array-always-returns-1/487575)

<div class="topic-metadata">

**Author:** [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Replies:** 4\
**Last updated:** [August 17, 2021, 10:49pm UTC](https://forums.unrealengine.com/t/find-for-an-fstring-array-always-returns-1/487575 "2021-08-17T22:49:45Z")

</div>

Here’s the code I’m using, and it’s a bit of a mess but the code isn’t the problem… for (int32 ClassIndex = 0; ClassIndex \< TileClassArray.Num(); ClassIndex++) { AlphabetIndex = AlphabetArray-\>Find(TileClassArray\[Class…

---

## [Why does FString Append in loop use numbers from previous loop?](https://forums.unrealengine.com/t/why-does-fstring-append-in-loop-use-numbers-from-previous-loop/486390)

<div class="topic-metadata">

**Author:** [@TheThreeEyedLion](https://forums.unrealengine.com/u/TheThreeEyedLion)\
**Replies:** 2\
**Last updated:** [July 19, 2021, 1:51pm UTC](https://forums.unrealengine.com/t/why-does-fstring-append-in-loop-use-numbers-from-previous-loop/486390 "2021-07-19T13:51:09Z")

</div>

Hi, I think the problem lies with the Append function, but I can’t figure out why it does that? there is no problem, it is just how Append it works. FString MyString = "ABC"; MyString.Append("D"); MyString is now…

---

## [How i can to compare two TCHAR in C++?](https://forums.unrealengine.com/t/how-i-can-to-compare-two-tchar-in-c/486044)

<div class="topic-metadata">

**Author:** [@VladAnt\_1995](https://forums.unrealengine.com/u/VladAnt_1995)\
**Replies:** 0\
**Last updated:** [July 11, 2021, 10:05am UTC](https://forums.unrealengine.com/t/how-i-can-to-compare-two-tchar-in-c/486044 "2021-07-11T10:05:52Z")

</div>

Hallo! i’ve some FString, and i get from it TCHAR by index. How i can compare it with other TCHAR? FString str = "Hallo my little World"; bool getCh(int x, TCHAR ch) { return (FCString::Strcmp(&str\[x\], ch)!=0); } A…

---

## [Error: cannot convert argument 2 from 'FString (\_\_cdecl FMyClassDetails::\* )(void) const' to 'FString (\_\_cdecl IPropertyHandle::\* )(void) const'](https://forums.unrealengine.com/t/error-cannot-convert-argument-2-from-fstring-__cdecl-fmyclassdetails-void-const-to-fstring-__cdecl-ipropertyhandle-void-const/482651)

<div class="topic-metadata">

**Author:** [@Crakmaks](https://forums.unrealengine.com/u/Crakmaks)\
**Replies:** 2\
**Last updated:** [May 17, 2021, 9:27pm UTC](https://forums.unrealengine.com/t/error-cannot-convert-argument-2-from-fstring-__cdecl-fmyclassdetails-void-const-to-fstring-__cdecl-ipropertyhandle-void-const/482651 "2021-05-17T21:27:20Z")

</div>

Hey everyone, What does this error mean? Error C2664 'SObjectPropertyEntryBox::FArguments::WidgetArgsType &SObjectPropertyEntryBox::FArguments::ObjectPath\<IPropertyHandle\>(TSharedRef\<IPropertyHandle,ESPMode::NotThreadS…

---

## [FObjectFinder; make a generic function](https://forums.unrealengine.com/t/fobjectfinder-make-a-generic-function/468502)

<div class="topic-metadata">

**Author:** [@Gurulis99](https://forums.unrealengine.com/u/Gurulis99)\
**Replies:** 2\
**Last updated:** [July 23, 2020, 4:46pm UTC](https://forums.unrealengine.com/t/fobjectfinder-make-a-generic-function/468502 "2020-07-23T16:46:08Z")

</div>

Greetings, i want to make a generic function called FindAsset(FString name) which will return the object of the asset. Inside of it, i use the ConstructorHelper::FObjectFinder. Although everything is good, i cant put th…

---

## [How to convert FString to const TCHAR?](https://forums.unrealengine.com/t/how-to-convert-fstring-to-const-tchar/340681)

<div class="topic-metadata">

**Author:** [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Replies:** 2\
**Last updated:** [October 29, 2019, 2:57am UTC](https://forums.unrealengine.com/t/how-to-convert-fstring-to-const-tchar/340681 "2019-10-29T02:57:25Z")

</div>

I’m trying to use: Cast\<UStaticMesh\>(StaticLoadObject(UStaticMesh::StaticClass(), NULL, TEXT("StaticMesh'/Game/Environment/Floor/StaticMeshes/Hex\_Water.Hex\_Water'"))) and I have an array of FStrings of the file locatio…

---

## [Is there any C++ stringstream or C# StringBuffer like class in UE4?](https://forums.unrealengine.com/t/is-there-any-c-stringstream-or-c-stringbuffer-like-class-in-ue4/451341)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_43b87f14](https://forums.unrealengine.com/u/anonymous_user_43b87f14)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 4:21am UTC](https://forums.unrealengine.com/t/is-there-any-c-stringstream-or-c-stringbuffer-like-class-in-ue4/451341 "2019-06-27T04:21:50Z")

</div>

I’d like to dynamically edit strings but I am not sure if I can simply use FString’s operands for doing this efficiently. I wonder if there is any class similar to C++'s stringstream or C#'s StringBuffer in UE. I’ve se…

---

## [FString to FString \* ??](https://forums.unrealengine.com/t/fstring-to-fstring/424243)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5f225f0d](https://forums.unrealengine.com/u/anonymous_user_5f225f0d)\
**Replies:** 10\
**Last updated:** [January 22, 2019, 12:33pm UTC](https://forums.unrealengine.com/t/fstring-to-fstring/424243 "2019-01-22T12:33:41Z")

</div>

Hello I am trying to compile a Plugin For Editor Use, but I get this issue all the time: error C2664: ‘bool FEditorFileUtils::SaveLevelAs(ULevel \*,FString \*)’: cannot convert argument 2 from ‘FString’ to ‘FString \*’ be…

---

## [How to replace substring?](https://forums.unrealengine.com/t/how-to-replace-substring/439316)

<div class="topic-metadata">

**Author:** [@BestWarrior](https://forums.unrealengine.com/u/BestWarrior)\
**Replies:** 2\
**Last updated:** [December 11, 2018, 10:35pm UTC](https://forums.unrealengine.com/t/how-to-replace-substring/439316 "2018-12-11T22:35:29Z")

</div>

Hi, I want to convert from “E:\\Project\\Saved\\SaveGames” to “E:\\Project\\Saved\\SaveGames” FString SaveDir = FPaths::ProjectSavedDir() / "SaveGames/"; FString bara = "\\"; FString bara2 = "\\\\"; const TCHAR\* baras = \*bara;…

---

## [C++ FString and Asian Encoding](https://forums.unrealengine.com/t/c-fstring-and-asian-encoding/427940)

<div class="topic-metadata">

**Author:** [@Lepiegeur](https://forums.unrealengine.com/u/Lepiegeur)\
**Replies:** 4\
**Last updated:** [June 23, 2018, 1:25am UTC](https://forums.unrealengine.com/t/c-fstring-and-asian-encoding/427940 "2018-06-23T01:25:08Z")

</div>

Hello, I am in despair. I am new to C++ code, and I’d like to know how to stock Japanese characters (like “おはよう”) in a FString. I’ve already searched, and found that FString can stock special characters, but due to the…

---

## [Want default font for FText](https://forums.unrealengine.com/t/want-default-font-for-ftext/423493)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3db272cd](https://forums.unrealengine.com/u/anonymous_user_3db272cd)\
**Replies:** 0\
**Last updated:** [April 24, 2018, 8:29pm UTC](https://forums.unrealengine.com/t/want-default-font-for-ftext/423493 "2018-04-24T20:29:47Z")

</div>

In the docs FString in Unreal Engine | Unreal Engine 5.1 Documentation the example for rendering an FText uses “FCanvasTextItem TextItem( FVector2D::ZeroVector, TestHUDText, BigFont, FLinearColor::Black);” which uses Big…

---

## [Does the FString have a length limit?](https://forums.unrealengine.com/t/does-the-fstring-have-a-length-limit/410298)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8fbf1ec1](https://forums.unrealengine.com/u/anonymous_user_8fbf1ec1)\
**Replies:** 2\
**Last updated:** [November 22, 2017, 11:14am UTC](https://forums.unrealengine.com/t/does-the-fstring-have-a-length-limit/410298 "2017-11-22T11:14:21Z")

</div>

Does the FString have a length limit?

---

## [RPC Compile error using FString](https://forums.unrealengine.com/t/rpc-compile-error-using-fstring/410069)

<div class="topic-metadata">

**Author:** [@Mctittles](https://forums.unrealengine.com/u/Mctittles)\
**Replies:** 2\
**Last updated:** [November 21, 2017, 6:54pm UTC](https://forums.unrealengine.com/t/rpc-compile-error-using-fstring/410069 "2017-11-21T18:54:07Z")

</div>

Reposted because I meant to put this in bug reports but only did the tag last time not the section In my PlayerState I have the following: .h UFUNCTION(Server, Reliable, WithValidation) void playerJoined(FString play…

---

## [Can I use switch case in C++ with FString?](https://forums.unrealengine.com/t/can-i-use-switch-case-in-c-with-fstring/404369)

<div class="topic-metadata">

**Author:** [@rigmania](https://forums.unrealengine.com/u/rigmania)\
**Replies:** 2\
**Last updated:** [September 13, 2017, 2:22am UTC](https://forums.unrealengine.com/t/can-i-use-switch-case-in-c-with-fstring/404369 "2017-09-13T02:22:05Z")

</div>

Hi, I’m making XML parsing code with FXmlNode. I want to iterate through GetChildrenNodes(), and use switch-case with FString which is return value of FXmlNode::GetTag(). Is there someway to do that? Or should I use i…

---

## [How to convert int64 to fstring or tchar array](https://forums.unrealengine.com/t/how-to-convert-int64-to-fstring-or-tchar-array/381739)

<div class="topic-metadata">

**Author:** [@minions0](https://forums.unrealengine.com/u/minions0)\
**Replies:** 4\
**Last updated:** [August 22, 2017, 6:40pm UTC](https://forums.unrealengine.com/t/how-to-convert-int64-to-fstring-or-tchar-array/381739 "2017-08-22T18:40:56Z")

</div>

how to convert int64 to fstring or tchar array except using fstring::printf ? fstring::printf is platform dependent. and fstring::fromint is only support for int32.

---

## [How to watch value of FString on debug mode?](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743)

<div class="topic-metadata">

**Author:** [@Muzaheed](https://forums.unrealengine.com/u/Muzaheed)\
**Replies:** 6\
**Last updated:** [April 18, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743 "2017-04-18T16:07:04Z")

</div>

in VS2013 how to watch value of FString on debug mode? Char or TCHAR shows ok. but FString does not show . is it a visual Studio specific function or Unreal specific? someone from IRC said me to install “Engine\\Extra…

---

## [How do you fix packaging warning about FText initialized from FString at cook time?](https://forums.unrealengine.com/t/how-do-you-fix-packaging-warning-about-ftext-initialized-from-fstring-at-cook-time/385622)

<div class="topic-metadata">

**Author:** [@F3NR1S](https://forums.unrealengine.com/u/F3NR1S)\
**Replies:** 6\
**Last updated:** [March 3, 2017, 4:02am UTC](https://forums.unrealengine.com/t/how-do-you-fix-packaging-warning-about-ftext-initialized-from-fstring-at-cook-time/385622 "2017-03-03T04:02:59Z")

</div>

Hello, I am cleaning up packaging, deployment, and other build warnings. I am not having success in solving the following warning during packaging for Android target: UATHelper: Packaging (Android (All)): UE4Editor-Cmd…

---

## [How to convert FText to FString?](https://forums.unrealengine.com/t/how-to-convert-ftext-to-fstring/380765)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_aab22278](https://forums.unrealengine.com/u/anonymous_user_aab22278)\
**Replies:** 1\
**Last updated:** [January 3, 2017, 8:54am UTC](https://forums.unrealengine.com/t/how-to-convert-ftext-to-fstring/380765 "2017-01-03T08:54:42Z")

</div>

This is often used while programming.

---

## [Trigger enable FPlatformProcess?](https://forums.unrealengine.com/t/trigger-enable-fplatformprocess/372738)

<div class="topic-metadata">

**Author:** [@Eden91](https://forums.unrealengine.com/u/Eden91)\
**Replies:** 0\
**Last updated:** [October 7, 2016, 5:00pm UTC](https://forums.unrealengine.com/t/trigger-enable-fplatformprocess/372738 "2016-10-07T17:00:09Z")

</div>

Hi all: I want to launch an url with the OS default webbrowser when a player steps into a trigger. I have the code: FString TheURL = “http://www.google.com/”; FPlatformProcess::LaunchURL( \*TheURL, nullptr, nullptr ); …

---

## [Is it possible to load a texture for a brush by a string name?](https://forums.unrealengine.com/t/is-it-possible-to-load-a-texture-for-a-brush-by-a-string-name/370449)

<div class="topic-metadata">

**Author:** [@irdc](https://forums.unrealengine.com/u/irdc)\
**Replies:** 2\
**Last updated:** [September 15, 2016, 1:05pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-load-a-texture-for-a-brush-by-a-string-name/370449 "2016-09-15T13:05:56Z")

</div>

Hello! I can’t seem to find any proper way to use a string as the name of a texture in order to dynamically load the texture for a button widget. I have a blueprints function that formats a series of button widgets by …

---

## [TEXT adds L prefix](https://forums.unrealengine.com/t/text-adds-l-prefix/368516)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_51b517e1](https://forums.unrealengine.com/u/anonymous_user_51b517e1)\
**Replies:** 1\
**Last updated:** [August 28, 2016, 1:20pm UTC](https://forums.unrealengine.com/t/text-adds-l-prefix/368516 "2016-08-28T13:20:16Z")

</div>

Why does the belove code work? When i just use the variables name, like if I put it like TEXT(LTchar) the compiler expect there to be a variable named LLTchar. What is going on? void Example::Do(FString MeshPath) { con…

---

## [Problem with inputing Text from UMG Widget to C++](https://forums.unrealengine.com/t/problem-with-inputing-text-from-umg-widget-to-c/353851)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ac4731691](https://forums.unrealengine.com/u/anonymous_user_ac4731691)\
**Replies:** 1\
**Last updated:** [April 12, 2016, 8:59am UTC](https://forums.unrealengine.com/t/problem-with-inputing-text-from-umg-widget-to-c/353851 "2016-04-12T08:59:17Z")

</div>

Hi, I must be missing something here. I’ve created a test blueprint function to get a login system figured out and it doesn’t seem to be calling my username/password inputs right. It just goes false every time, even if I…

---

## [How to add fstring in the end of TEXT](https://forums.unrealengine.com/t/how-to-add-fstring-in-the-end-of-text/344920)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_14921f86](https://forums.unrealengine.com/u/anonymous_user_14921f86)\
**Replies:** 1\
**Last updated:** [January 22, 2016, 8:53am UTC](https://forums.unrealengine.com/t/how-to-add-fstring-in-the-end-of-text/344920 "2016-01-22T08:53:53Z")

</div>

FString test = “SM\_Chair.SM\_Chair”; static ConstructorHelpers::FObjectFinder Mesh(TEXT(“/Game/StarterContent/Props/”)); towerMesh-\>SetStaticMesh(Mesh.Object); How would i be able to add a path (test) that i want to th…

---

## [Set FString Variable in function](https://forums.unrealengine.com/t/set-fstring-variable-in-function/341842)

<div class="topic-metadata">

**Author:** [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Replies:** 5\
**Last updated:** [December 19, 2015, 2:58pm UTC](https://forums.unrealengine.com/t/set-fstring-variable-in-function/341842 "2015-12-19T14:58:42Z")

</div>

Total noob here. Should be an easy one. I am fetching a json string from http, and extracting out a string identifier. This works great. I want to keep this identifier to use in a later function. I have extended \[pr…

---

## [Set string for FString via UProperty Object](https://forums.unrealengine.com/t/set-string-for-fstring-via-uproperty-object/331998)

<div class="topic-metadata">

**Author:** [@Quis](https://forums.unrealengine.com/u/Quis)\
**Replies:** 1\
**Last updated:** [September 13, 2015, 8:08am UTC](https://forums.unrealengine.com/t/set-string-for-fstring-via-uproperty-object/331998 "2015-09-13T08:08:27Z")

</div>

Hi, i know how to set float or int or event bool by name with the UProperty class (casting to derived UProperty classes like “UNumericProperty” and using appropriate methods like “SetNumericPropertyValueFromString”) but…

[Next page](https://forums.unrealengine.com/tag/fstring/232.md?match_all_tags=true&page=1&tags%5B%5D=fstring)
