From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Unreal Engine localization resource (locres, locmeta)" |
|---|
| claim | "Unreal FString: i32 length including the null terminator; positive means 8-bit characters, negative means UTF-16 (abs(length) code units), 0 means empty." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Unreal Engine serialization of strings" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "reading any string in a locres, locmeta or uasset" |
|---|
| effect | "length sign selects ANSI or UCS-2; int.MinValue is rejected as corrupt" |
|---|
| condition | "length less than 0 means UTF-16" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "FArchive.ReadFString: comment '> 0 for ANSICHAR, < 0 for UCS2CHAR serialization'; null terminator check" |
|---|
| repo | "https://github.com/FabianFG/CUE4Parse" |
|---|
| commit | "2b8901c3ee9818558ad33e2496a58d50b82e99db" |
|---|
| path | "CUE4Parse/UE4/Readers/FArchive.cs" |
|---|
| lines | "521-570" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "FString encoding" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:16:36.551Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:36:46.104Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read CUE4Parse FArchive.cs at 2b8901c ReadFString lines 521-580: i32 length, 0 empty, negative = UCS2 with -length code units, positive = 8-bit; null terminator validated; length minus one chars returned." |
|---|
|
|
|---|