The codepage single-byte text is decoded as - a deliberate divergence from
the engine, which widens each byte straight to a character (FromAnsi in
Core/Inc/Core.h, UT 436 source release):
That is Latin-1 semantics, which puts an unprintable C1 control where a
Windows author typed punctuation such as a curly quote; it renders correctly
in game only because UT's bitmap fonts are indexed in codepage order.
Decoding windows-1252 instead yields the character the author actually typed.
The two differ only for bytes 0x80-0x9F.
This applies to the forms with no encoding of their own - the name table, the
URL and travel-info fields, and TextBuffer contents - but not Str
properties, which the engine writes as UTF-16LE for any non-ASCII text (see
readStringProperty).
The codepage single-byte text is decoded as - a deliberate divergence from the engine, which widens each byte straight to a character (
FromAnsiinCore/Inc/Core.h, UT 436 source release):That is Latin-1 semantics, which puts an unprintable C1 control where a Windows author typed punctuation such as a curly quote; it renders correctly in game only because UT's bitmap fonts are indexed in codepage order. Decoding windows-1252 instead yields the character the author actually typed. The two differ only for bytes 0x80-0x9F.
This applies to the forms with no encoding of their own - the name table, the URL and travel-info fields, and TextBuffer contents - but not
Strproperties, which the engine writes as UTF-16LE for any non-ASCII text (see readStringProperty).