0

I'm struggling with a special symbol in a text file on linux. I actually successfully pasted it between the following letters "a‏a" (my cursor in Geany stops but no character is displayed).

I'd like to know what's the easiest way to get its utf8 code (in the form U+0000). I'm using ubuntu and geany and I tried hexdump on a file containing it but I'm obviously missing something.

Yasen
  • 1,663
  • 10
  • 17
  • 1
    Don't confuse Unicode code points and their UTF-8 representation. For example, U+0410 is a capitol Cyrillic A, but its UTF-8 representation is 0xD0 0x90. – chepner Oct 04 '13 at 18:31
  • Thanks, I was wondering how to use unicode codes in grep regular expressions and it turned out I needed the UTF-8 representation byte by byte (since my files use utf-8 I guess). Anyway, bites were: 0xE2 0x80 0x8F – Yasen Oct 06 '13 at 10:04

1 Answers1

3

You could open the file with vim, put the text cursor over the character, then type 'ga' (without quotes) and it will display the character code in decimal, hex and octal in the status line.