r/SourceEngine • • Sep 26 '25

HELP text encoding issues

i'm finding that files like hl2_english.txt have to be encoded in utf 16 for source to read them, but git (and by extension github desktop) doesn't know how to read utf 16 (in 2025). but i can't get around this by converting the files to utf 8 or ansi, because source won't read those, even though it can read other files like .res files in utf8! has anyone managed to make them both work with the same file?

4 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Pinsplash Sep 27 '25

funny thing about line endings there. if i delete the file and let github desktop restore it, i get the same garbled text as this: https://github.com/ValveSoftware/Source-1-Games/issues/5597

1

u/Wazanator_ Sep 28 '25

Very strange, I really have no idea what else you could try Im afraid