LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Terminal logging character problem -Newbie- (https://www.linuxquestions.org/questions/linux-newbie-8/terminal-logging-character-problem-newbie-793959/)

anacondauser 03-08-2010 07:41 AM

Terminal logging character problem -Newbie-
 
in terminal wanted to log with script command
but output file has some strange characters when I try to open with gedit or bluefish


Script started on Mon 08 Mar 2010 03:32:39 PM EET
]0;anacondauser@localhost:~[anacondauser@localhost ~]$ ls -al

total 900

drwx------ 35 anacondauser anacondauser 4096 Mar 8 15:32 .

drwxr-xr-x 3 root root 4096 Jun 6 2009 ..

-rw-rw-r-- 1 anacondauser anacondauser 0 Mar 8 15:32 abc.txt

drwx------ 3 anacondauser anacondauser 4096 Jun 6 2009 .adobe

-rw------- 1 anacondauser anacondauser 5814 Mar 8 15:24 .bash_history

-rw-r--r-- 1 anacondauser anacondauser 33 May 25 2008 .bash_logout

-rw-r--r-- 1 anacondauser anacondauser 176 May 25 2008 .bash_profile

-rw-r--r-- 1 anacondauser anacondauser 124 May 25 2008 .bashrc

drwx------ 3 anacondauser anacondauser 4096 Jan 18 08:08 .bittorrent

drwxr-xr-x 2 anacondauser anacondauser 4096 Mar 8 15:22 .bluefish


]0;anacondauser@localhost:~[anacondauser@localhost ~]$ exit


Script done on Mon 08 Mar 2010 03:32:44 PM EET

How can I get rid of these weird characters?

MrCode 03-08-2010 07:43 AM

What are the character encoding settings in your terminal and gedit/bluefish? You may just have to set one or the other so they match.

anacondauser 03-08-2010 07:46 AM

both(termina & bluefish) UTF-8 already
Quote:

Originally Posted by MrCode (Post 3890166)
What are the character encoding settings in your terminal and gedit/bluefish? You may just have to set one or the other so they match.

also vim output has weird characters :(
drwx------ 35 anacondauser anacondauser 4096 Mar 8 15:32 ^[[00;34m.^[[00m^M
drwxr-xr-x 3 root root 4096 Jun 6 2009 ^[[00;34m..^[[00m^M
-rw-rw-r-- 1 anacondauser anacondauser 0 Mar 8 15:32 ^[[00mabc.txt^[[00m^M
drwx------ 3 anacondauser anacondauser 4096 Jun 6 2009 ^[[00;34m.adobe^[[00m^M
-rw------- 1 anacondauser anacondauser 5814 Mar 8 15:24 ^[[00m.bash_history^[[00m^M
-rw-r--r-- 1 anacondauser anacondauser 33 May 25 2008 ^[[00m.bash_logout^[[00m^M


All times are GMT -5. The time now is 07:16 PM.