Showing posts with label gedit. Show all posts
Showing posts with label gedit. Show all posts

Wednesday, December 8, 2010

Linux: how to remove ^M at each line end

I got an acsii file from a Window's user. If it is a regular windows text file, then I can use a command 'dos2unix' to convert it in unix format. However, it doesn't work. I use 'less' to have a look at it, it looks like:

line1^M line2^M

. If I use emacs to view it, it looks okay like a regular file. In order to convert it to unix format, I use 'gedit' to do the conversion. A user will be reminded that you save as which format...

Friday, April 20, 2007

Linux: how to show Chinese charactors using gedit

'gedit' is an editor in Linux. It has been internationalized and is an excellent software. In order to show or type Chinese by it, need to select some Chinese codings like GB Hz, GB 2312 ect. First, you open a blank file, when you save it, you will be asked that what kind of coding you wanna use, please pick any one of Chinese code. Do NOT use 'AutoDect', sometimes it is not working.

Locations of visitors to this page