Perforce corrupts config file encodig

We’re having issues with perforce, which we’re using through its visual client, P4V.

When editing the DefaultInput.ini locally, it looks completely fine, but as soon as it is submitted to the repo its encoding seems to get corrupted and display in Chinese characters, breaking the file so engine can’t read it.

Any idea what could be causing this? Tried saving it both through the engine and notepad++ with correct UTF-8 encoding, nothing helps.

Any solution to this yet?

Just had this happen to me…which is strange, first time in over 3+ years of using Perforce in over 30+ projects.

https://soverance.com/perforce-tutorial-corrupted-utf-16-file-content/ found a way around it.

But, I always follow the UE4 Perforce docs/typemap… soooo no idea what the heck happened this time around. And I already committed 80GB to repo lol

This happened to my DefaultGame.ini file!

I don’t know what could have caused it. Maybe after I set the copyright text in the Project Settings, which contains the ñ character?