To work in a virtual machine, it is inevitable to copy files from Windows (the default shared directory is/mnt/hgfs ). When copying txt files, it is inconvenient to display garbled characters in Fedora. The following describes the most practical solution: According to: encoding reasons. Because Linux uses UTF-8 encoding by default, ANSI is used in Windows. Solution: When copying txt text in Windows, choose Save As-select encode as (UTF-8 ). And then copy it to the virtual machine-Fedora.
To work in a virtual machine, it is inevitable to copy files from Windows (the default shared directory is/mnt/hgfs ). When copying txt files, it is inconvenient to display garbled characters in Fedora. The following describes the most practical solution:
Encoding reason. Because Linux uses UTF-8 encoding by default, ANSI is used in Windows.
Solution: When copying txt text in Windows, choose Save As-select encode as (UTF-8 ). Then copy it to the virtual machine-Fedora without garbled characters.
Note: The online solution is to enter gconf-edit on the terminal to call up gconf-edit (if not installed, install gconf-edit first) double-click apps-> gedit-2-> preferences-> encodings in auto-detected on the right to bring up a dialog box where you can add GBK, GB2312, GB18030 encoding. You may also need to pin the GBK to the top.
However, after I tried it, the gconf-edit command cannot be found in the terminal, and gedit has been installed. In addition, alt + F2. In the run application dialog box, enter gconf-edit. Some links may be wrong, but this method cannot be used. Therefore, the top method is the most practical method, but it is a small step.