Encoding change in Ubuntu

Some files in different OS use different encoding, such as MATLAB files in windows use GBK, they cannot show correctly in linux when Chinese or Janpanese comments in the files. We need to change the encoding first.

1.install enca:sudo apt install enca

2.enter the directory such as: cd ~/Documents

3.change the encoding to utf8:enca -x utf-8 -L chinese *