As the title says; Nano via the terminal, how to write special characters?

I am having trouble trying to debug a UTF8 problem and would like to create a special character in a file via the terminal.

Anyone know how to make for example alt-code symbols in nano?


If you hit CTRL+SHIFT+U you will get an underlined u. Then type a character code and hit ENTER

You can see all the unicode character codes here: http://www.utf8-chartable.de/

The part where it says U+00e9; you can type CTRL+SHIFT+U 00e9

Or even just CTRL+SHIFT+U e9

Then hit ENTER

  • I feel I am getting closer to the UTF8 problem, when I press CTRL+SHIFT+U in the normal terminal nothing happens? – Karl Morrison Jul 4 '14 at 19:30
  • I use the command "start_unicode" and then hold in "ALT" while typing "1236" and got a diamond! – Karl Morrison Jul 4 '14 at 20:06
  • Maybe I'm not understanding your issue. Unless you have already solved it? You want to display UTF-8 characters in the Terminal? Do you have UTF-8 Encoding enabled for Terminal? As far as writing them, my answer should explain that. – Kenmore Aug 8 '14 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.