A text file opens instead of the code

Hi. When i open a cpp or h file in Visual Studio, a text document opens. The solution was cleared, re-sorted, files .vs, Binaries, Intermediate, Saved, and .sln - deleted, but does not help. What is the problem?

@iSimstix1 it seems to be a problem with Visual Studio and not with Unreal. It seems to be an encoding problem:

Thank you for the link, it helped. Unfortunately, the code was not saved (I still don’t understand why this happened)