linux vi utf-8 encoding garbled [Reserved]

2011-09-16  来源:本站原创  分类:OS  人气:174 

Solution  :cuteftp ->   Within the global setting   -> html  Editor   ->   Notepad will be built into the toilet, ok happy to open  SecureCRT,  Boarded the node vi, and garbled  ,  Kao Kao  .... 

  Solution  :
1.  Best first / etc/sysconfig/i18n of  Lang  Changed LANG = "zh_CN.UTF-8" and then  exprot LANG="zh_CN.UTF-8"  Let him take effect in the current session even though they later changed the LANG = "zh_CN.GB180301" Han did not issue a  ,  Safe, or do a good uniform  ~~ 

2.  Their own user directory  (/root)  Create. Vimrc and add documents
set fileencodings=gb2312,gb18030,utf-8
set termencoding=utf-8 

3.  Into the root directory  vi .viminfo
  Editing. Viminof file  ,  Amended as follows  :
*encoding==utf-8.gbk  Sign the session re-entering the   

4.  Set into the Secure CRT  ,  Options  ->  Session options  ->  Exterior ->  Character encoding  ->uft-8
  A re vi  ,  Ah ha ha ha, Eau a  ~~ 

  Gbk file find  cat  A, garbled   = = b  By the way, should be  Secure CRT  Settings, options  ->  Session options  ->  Exterior ->  Character encoding  ->  By default it's like under gbk  ,  Now has nothing to do with the system, simply switch  Secure CRT  Settings can gbk, utf-take-all  ,

[Reserved] http://hi.baidu.com/computer02422/blog/item/793aca306e0129a45edf0eea.html

相关文章
  • linux vi utf-8 encoding garbled [Reserved] 2011-09-16

    Solution :cuteftp -> Within the global setting -> html Editor -> Notepad will be built into the toilet, ok happy to open SecureCRT, Boarded the node vi, and garbled , Kao Kao .... Solution : 1. Best first / etc/sysconfig/i18n of Lang Changed LANG

  • linux vi command set 2010-04-09

    1. Cursor control cursor movement command command h ^ h or a character to the left j or ^ j or ^ n to move down a line k or move up a line ^ p l or a space character to the right G moved to the last line nG move to file the first n rows w move to the

  • Linux view the file encoding, file format conversion and encoding the file name data conversion. 2010-08-22

    Ran into this problem, refer to the article, archive Involved 1.vim in the display and conversion: set fileencoding 2. Convert the entire file using the iconv 3. Convmv convert file name to use If you need to operate in the Linux file under windows,

  • I used the Linux command iconv - character encoding conversion tool 2010-11-09

    I used the Linux command iconv - character encoding conversion tool This link: http://codingstandards.javaeye.com/blog/807077 (reprint, please indicate the source) Use Description iconv command is used to convert the file encoding (Convert encoding o

  • Commonly used commands under linux vi editor command Daquan 2010-10-16

    Commonly used commands under linux vi editor command Daquan The text editor is the most commonly used of all computer systems as a tool. Under UNIX editor has ex, sed, and vi, etc., of which the most widely used is vi, the vi command range of forums

  • Linux vi editor command 2011-01-25

    linux vi editor under the command Daquan Add this: in vi use the command is: colon + command + enter, such as: q Enter behalf of exit. ================================================== ======== Enter vi command vi filename: Open or create a new file

  • linux vi command set of shortcut keys 2011-03-20

    Cursor control commands commands move the cursor h ^ h or a character to the left or j or ^ j ^ n to move down one line k or move up one line ^ p l or a character space to the right Move the last line of G nG move to line n files w move to the beginn

  • Linux, vi / vim point tips 2011-04-18

    Has been frequently used to vi / Vim tips tidy up, want to be useful: (A) General Operation: 1 command mode to input mode command: a (append): starting from the cursor position behind the new data, the data after the cursor moves backward with the ne

  • Quick shorthand shortcuts linux VI 2011-07-04

    Introduction: Recent study linux, blog updates slower ... ... Today, two linux VI occasionally find a "God figure" and not everything he knows, to share with you. Body: Man of few words said, directly on the goods! 1, "linux VI operation lo

  • copy a linux VI characters or lines of characters 2011-09-02

    linux VI copy a few lines of a character or characters Open the VI editor, create a new file Just enter a few lines of data vi ccc aaaaaaaaa bbbbbbb cccccccccc dddddddddddd deeeeeeeeeee eeeeeeeeeeefff Save Then vi ccc Plus use the command line number

  • linux garbled [Reserved] 2011-06-16

    linux, ubuntu, flash Chinese characters displayed in the white box problem garbled 2009-2-5,11:02 Comments (13) Installed on the ubuntu official flash player, one of the dynamic Chinese font is displayed as a box problem can be resolved using the fol

  • Under the zend studio linux can not open and garbled solution (change) 2010-05-27

    Problem of the google, I found the following could be the solution to the: Interface does not show the problem: Opened can not be shown, only the title bar of the normal Address: Using vi open Zend_Development_Environment (and you choose the path of

  • Linux view the file encoding, file format conversion and encoding the file name encoding 2010-07-12

    If you need to operate in the Linux file under windows, then you may often encounter file encoding conversion problems. Windows in the default file format is GBK (gb2312), and Linux are generally UTF-8. Here look, how to view the file in the Linux co

  • linux convert file name encoding and file encoding 2010-08-17

    View the file encoding in Linux, you can view the files encoded by the following ways: 1. Vim can directly view the file encoding : Set fileencoding To display the file encoding format. If you just want to see other encoding format or would like to s

  • Under the deal on the linux java + tomcat + mysql solution garbled 2010-12-15

    Under the recently Ubuntu9.04 with java using tomcat release a project developed by WEB (tomcat6 + mysql). Under the code in windows no problems, to the post under linux, a lot was full of garbage characters (mainly for Chinese). Internet search, alt

  • About PDFBox read Identity-H encoding garbled question, with a pdf 2010-03-29

    Software Version: pdfbox-0.8.0-incubating PDF conversion software: Adobe Acrobat6.0, Foxit PDF Creator Problem Description: The more professional Foxit PDF Creator conversion is no problem, use Acrobat conversion, conversion out of the normal pdf can

  • spread linux windows file conversion encoding 2010-04-18

    iconv (1) for the contents of a file conversion from one encoding to another encoding, for example, if a document is from the windows in the editor input.txt is gb2312 coding. In the default encoding to utf8 in fc3 environment, if you use gedit Da Ka

  • linux vi editor commands 2010-06-01

    Open the file # Vi file_name I started editing Exit edit mode esc Non-edit mode command: : / Main () / * find the string main (), then press "N", said the find the next. And windows in the F3 function similar to the * / : / 66 / * cursor to the

  • Under linux vi command Xiangjie 2010-06-14

    Most powerful in the editor - vi Enter the command vi vi filename: Open or create a new file, and the first line of the first cursor vi + n filename: Open the file and the cursor the first line of the first n vi + filename: Open the file and the last

  • linux view the file encoding 2010-12-23

    http://www.xiaojb.com/archives/it/convert-gbk-utf-8.shtml http://space.itpub.net/10768286/viewspace-536375 http://www.cnblogs.com/cocowool/archive/2009/04/25/1443529.html The contents of the above referenced articles. iconv mainly use under linux and