3

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?

1 Answers1

5

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

Kenmore
  • 403
  • 1
  • 4
  • 8
  • 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 04 '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 04 '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 08 '14 at 07:41
  • 2
    This sounds like a window manager feature unrelated to the terminal or nano, which are the point of the question. – Nikana Reklawyks Aug 05 '20 at 19:36
  • @NikanaReklawyks Yeah. It doesn't work in nano on Termux on Android 10. – Brōtsyorfuzthrāx Feb 27 '21 at 08:40