Chinese ora9vi garbled characters

Source: Internet
Author: User
Open the discuz PHP program under Fedora9. The comments are garbled. So in ~ /. Add a setfileencodings = UTF-8 and gbkOK to vimrc. Solve the Problem and display Chinese characters normally when you enable it again. So the complete. vimrc becomes: setnocompatiblesetnumberfiletypeonsethistory = 1000 setbackground = darksynt

Open the discuz PHP program under Fedora 9. The comments are garbled.

So in ~ /. Add a line to vimrc

Set fileencodings = UTF-8, gbk

OK. Solve the problem, and then display Chinese normally. So the complete. vimrc becomes:

Set nocompatible
Set number
Filetype on
Set history = 1000
Set background = dark
Syntax on
Set autoindent
Set smartindent
Set tabstop = 4
Set shiftwidth = 4
Set showmatch
Set guioptions-= T
Set vb t_vb =
Set ruler
Set nohls
Set incsearch
If has ("vms ")
Set nobackup
Else
Set backup
Endif
Set fileencodings = UTF-8, gbk

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.