This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.
When a UTF-16 character (™ for example) is passed into a StringToBytes() function and then returned via BytesToString, the returned character does not match (in the case of ™, a double quotes is returned instead).
FString inString(TEXT("™"));
uint32 size = inString.Len();
TArray<uint8> data;
data.AddUninitialized(size);
StringToBytes(inString, data.GetData(), size);
FString outString = BytesToString(data.GetData(), size);
GEngine->AddOnScreenDebugMessage(-1, 10.f, FColor::Red, inString);
GEngine->AddOnScreenDebugMessage(-1, 10.f, FColor::Green, outString);
Result:
™ is printed as the inString and " is printed as the outString
Expected:
™ is returned for both the inString and outString.
i have this problem UE4CC-Windows-58DC12AF4B97F057BD108FBFF569B2E9_0000
I am not able to find world outliner how to enable it?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
How to achieve HLSL Multiple Render Target in Material blueprints?
How does TextureRenderTarget2D get TArray<uint8> type data?
Head over to the existing Questions & Answers thread and let us know what's up.
11 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.12.5 |
Created | Jul 28, 2016 |
---|---|
Resolved | Mar 26, 2018 |
Updated | Apr 27, 2018 |