Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
可以借鉴一下这个功能
最好的方式是借鉴vscode的auto guess encoding功能,自动根据打开的文件选择编码方式。因为服务器里的诸多文件编码格式并不是统一的,在终端级别进行配置很难通用