Solve the Problem of garbled characters in Windows files to Ubuntu.

Source: Internet
Author: User
Taking ubuntu 13.04 as an example of garbled cause: Garbled problem this is because the default encoding in Windows is GBK, in Ubuntu is a UTF-8, so in the Windows annotations, ubuntu will become garbled. Install vim first and run sudoapt-getinstallvim in command line mode. find vim. The configuration folder is not modified in this file. You can add the configuration file 1 in your home directory to run v.

Take Ubuntu 13.04 as an Example

Reasons for garbled characters:

Garbled problem this is because the default encoding in Windows is GBK, ubuntu is a UTF-8, so in Windows under the notes, Ubuntu will become garbled.

Install vim first

Run in Command Line Mode

Sudo apt-get install vim

Find the vim configuration folder.

It is generally not modified in this file

Add a configuration file in your home directory

1. Run vim ~ /. Vimrc command

2 "is the start symbol of the annotation.

Set nu "sets the display row number
Syntax on "enable syntax check
Set showmode "show status in the lower left corner
Set autoindent
Set fileencodings = UTF-8, ucs-bom, gb18030, gbk, gb2312, cp936
Set termencoding = UTF-8
Set encoding = UTF-8

Save OK.

Download, install, and configure Ubuntu 13.10Page http://www.linuxidc.com/Linux/2013-10/91564.htm

Ubuntu 13.10 text tutorial on hard drive installation in Windows 7See http://www.linuxidc.com/Linux/2013-10/91565.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.