Ubuntu12.04vimgedit Chinese garbled characters to solve the problem of adding Chinese character encoding: $ sudovim/var/lib/locales/supported. d/local # add the following Chinese character set zh_CN.GBKGBKzh_CN.GB2312GB2312zh_CN.GB18030GB18030 to make it take effect: $ sudod... ubuntu 12.04 vim gedit contains Chinese garbled characters: $ sudo vim/var/lib/locales/supported. d/local # add the following Chinese character set zh_cn.gbkzh_cn.gb2312 GB2312zh_CN.GB18030 GB18030 to make it take effect: $ sudo dpkg-reconfigure localesvim: Open the vim configuration file, in/etc/vim/vimrc, add set fileencodings = UTF-8, gb2312, Gbk, gb18030set termencoding = utf-8set encoding = prc save and exit source/etc/vim/vimrc at this time vim can correctly display Chinese. ------------------------------------------------------------ 'Gedit: gedit 3.x version settings (applicable to Ubuntu 11.10 and later) gsettings set org. gnome. gedit. preferences. encodings auto-detected "['utf-8', 'stream', 'gb18030', 'ISO-8859-15 ', 'utf-16']" --------------------------------------------------------------' pdf: $ sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditional # install the chinese font of pdf $ sudo apt-get install poppler-data # install the software to solve the garbled characters in pdf $ cd/etc/fonts/conf. d $ sudo cp 49-sansserif.conf 49-sansserif.conf_backup # back up $ sudo rm 49-sansserif.conf # delete the file and open the PDF file to display Chinese characters.
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.