Solve the Problem of garbled characters when copying txt text from Windows under the Virtual Machine Fedora12

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.