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 *

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s