Why can't I paste from clipboard to OS X Terminal.app when it contains special characters?
The problem is that ISO-Latin-1 doesn't contain these characters: “ ” ’ –
They can't be translated to ISO-Latin-1, so the text cannot be sent to the terminal. If you Paste text containing them, the Paste does not happen. Similarly, if you type the characters on the keyboard, Terminal beeps.
…one would think that it could be as smart as it just got rid of the characters in the paste maneuver but, it just doesn't paste anything in.
Possibly, except that you wouldn't want it silently omitting a few characters here and there. Perhaps Terminal should display an alert if it can't translate the text, and possibly offer you the option of simply dropping the invalid characters.
If this is important to you, please file a bug report: http://developer.apple.com/bugreporter/
(If you don't already have one, it requires a developer account, but it's free.)
Related videos on Youtube
Wrench
Updated on September 18, 2022Comments
-
Wrench over 1 year
For instance, if I have one or more of the following characters copied into clipboard, a paste into the terminal window will not work:
“ ” ’ –
This is pretty annoying, actually, one would think that it could be as smart as it just got rid of the characters in the paste maneuver but, it just doesn't paste anything in.
Could there perhaps be any way around this?
-
slhck over 12 yearsI can't reproduce this – what exactly happens? Nothing? Which version of OS X are you on, just for clarification?
-
Wrench over 12 yearsRunning 10.7 currently, problem has persisted since 10.5 for me. Correct, nothing happens when any of those characters are included in the clipboard. Most commonly I copy articles from the web and they tend to have those characters in them.
-
slhck over 12 yearsWhere are you copying them to? Any specific text editor or does it generally apply to the any active process in the Terminal?
-
Wrench over 12 yearsI think I may have an explanation. I'm using ISO-latin-1 and that seem to be the problem. Using UTF-8 and it works. Too bad I need to use ISO-latin-1 though.
-
slhck over 12 yearsOh, yes, that would have been my next guess. Why do you have to use it though? By the way, you can answer your own question if you want, explaining what you needed to change to fix it. This way you can help others and even gain reputation here.
-
Wrench over 12 yearsI'm using what you could call a telnet based BBS/forum. They have no support for UTF-8 yet so I have to use ISO Latin 1 to be able to use the swedish letters åäö.
-
-
Wrench over 12 yearsActually I don't think my needs trumps anything here, I will just ask for UTF-8 support from the telnet BBS instead. :) THanks for your detailed answer!