"^@" characters shown in SSH connection from OS X to Linux server

1

When I SSH into a Linux server via iTerm on OS X, running a PHP script, there are some strange characters printed on the screen

^@ funny character

What is this ^@ representing? These characters are not generated through the script, as you can see, they don't appear on every line.

ajreal

Posted 2012-04-17T10:36:40.017

Reputation: 438

1Have you entered anything on your Mac while or before the script was executing? What is the script outputting? Do these characters appear for other scripts as well? Do you see these characters when logging in from another terminal or computer? – slhck – 2012-04-17T10:41:58.663

I connected to the server via iTerm, I guess is nothing to do with the Mac. – ajreal – 2012-04-17T10:44:46.357

1

from this question, http://superuser.com/questions/75130/how-to-remove-ths-symbol-with-vim suggesting ^@ is a null character

– ajreal – 2012-04-17T10:49:43.493

Yes, it is caret notation for the null character, but the question is why it even shows up. Do you get it for other scripts as well? Or when using another machine to connect to? – slhck – 2012-04-17T10:54:03.373

tail -f sometime might return this null character. It did appear in other scripts. Did not try on other machine. But ssh into another linux will return same null character. – ajreal – 2012-04-17T11:09:43.593

Answers

3

enter image description here

By disabled the "When idle, send ASCII code: 0" will help

ajreal

Posted 2012-04-17T10:36:40.017

Reputation: 438