0
I ran across this accidentally when selecting a text row from a mySql database that contained several of the left double quote ( “ “
) and right double quote ( ” ”
) characters. Probably whoever entered the text copied from Word and pasted into the HTML <textarea>
.
Anyway, the text between the last ” and “ were not displayed, but instead the PuTTY window's title bar was changed to that substring.
The end part of the text was: The “s” on the end of the word “positions” can be removed (I think). New error message that pops up: “Cannot move the selected Division because
...
And the window's title bar became can be removed (I think). New error message that pops up: â€
.
I narrowed it down to the right double quote followed by the left double quote; anything between the two that would normally get printed instead becomes the window's title, excluding the first character after the right double quote. I'm unsure if it's specific to PuTTY or general to most shell programs. I don't know if it's specific to my PuTTY's internationalization/charset settings, or if it's specific to the Windows version(s) of PuTTY.
I tried looking up how to print special characters using echo -e
, but it won't let me go beyond the ASCII range. I tried looking up special command characters that do something when printed, but couldn't find anything helpful besides bell
(echo -e '\a'
, which causes the computer to beep). None of my other searches to try to determine why this happens and what would do it intentionally turned up no useful results.
So my question is, why do the left and right double quote characters trigger a title bar change in PuTTY when they're printed?
EDIT: To be clear, I am not asking how to get the characters to print correctly (I've found plenty of answers on that), but rather why those characters are being interpreted as commands.
What do you have
Remote character set
configured to in Putty Configuration -> Window -> Translation ? – ssnobody – 2015-08-29T03:03:26.113http://ptspts.blogspot.com/2012/11/how-to-use-unicode-accented-characters.html May also be relevant – ssnobody – 2015-08-29T03:05:12.970
@ssnobody
ISO-8859-1:1998 (Latin-1, West Europe)
...which happens to be the first item in the dropdown menu. – mouseas – 2015-08-29T22:03:18.730Mine is set to UTF-8... – ssnobody – 2015-08-30T02:10:52.300