As shown in the figure below:
Experiencing this issue is undoubtedly very frustrating for those who write programs with Chinese comments. However, the solution to this problem is actually quite simple, as shown in the figure below.
This is the configuration interface accessed from the last option in the view menu. Select GB2312 in the highlighted blue section, as shown:
At this point, the delete and backspace operations in the document will be performed according to the Chinese encoding, and the garbled characters will no longer appear.