Character encoding (English: Characterencoding), character set code is to encode the characters in the character set to an object in the specified set (such as: bit mode, natural number sequence, 8-bit group or electric pulse ), this allows text to be stored in computers and transmitted through communication networks. A common example is to encode the Latin alphabet into an ASCII code and a Mose code. ASCII represents the integer with letters, numbers, and other symbol numbers in a 7-bit binary format. Generally, an extra extended bit is used
Character encoding (English: Character encoding), Character set code is to encode the characters in the Character set to an object in the specified set (such as: bit mode, natural number sequence, 8-bit group or electric pulse ), this allows text to be stored in computers and transmitted through communication networks. A common example is to encode the Latin alphabet into an ASCII code and a Mose code. ASCII represents the integer with letters, numbers, and other symbol numbers in a 7-bit binary format. Generally, an extra extended bit is used for storage in 1 byte.
1. view the file Character encoding
| |
### Using file command ### [root @ ipython report] # file -- mime-encoding analysis.csvanalysis.csv: UTF-8 ### using vim command ### [root @ ipython report] # vim analysis.csv: set fileencoding = UTF-8 |
2. set File Character encoding
| |
#### Using iconv command #### syntax: iconv-f old_encoding-t new_encoding filename ### example ### [root @ ipython report] # iconv-f UTF-8-t gbk analysis.csv> new_analysis.csv ### using vim command ## #: set fileencoding = gbk: wq! |