How to see UNICODE character number?

Nikola Lečić nikola.lecic at anthesphoria.net
Thu Nov 15 05:05:02 PST 2007


On Wed, 14 Nov 2007 11:51:06 -0800
Yuri <yuri at rawbw.com> wrote:

> But it's still strange that there's no GUI utility in KDE or just X
> that would do it.

There are at least two very convenient GUI ways do to this:

(1) (g)ViM: assuming that you use UTF-8 to interptet Unicode and that
    your locale is properly set (xx_XX-UTF-8), you can paste the
    character (i.e.) „來“, point the cursor over it, and then:

    * key sequence 'ga' will return '<來> 20358, Hex 4f86, Octal 47606';
    * key sequence 'g8' will return 'e4 be 86' (actual bytes used to
      produce that letter;
    * key sequence '[Ctrl+v]u4f86' will print „來“ (in Insert mode).

(2) deskutils/gucharmap: GTK2 application, doesn't pull many Gnome
    dependencies, has highly professionally made database.
    'View -> Find -> 來 -> Character details' will provide you with the
    following:

	U+4F86 CJK UNIFIED IDEOGRAPH-4F86
	General Character Properties
	Unicode category: Letter, Other
	
	Various Useful Representations
	UTF-8: 0xE4 0xBE 0x86
	UTF-16: 0x4F86

	C octal escaped UTF-8: \344\276\206
	XML decimal entity: &#20358;

	CJK Ideograph Information
	Definition in English: come, coming; return, returning
	Mandarin Pronunciation: LAI2 LAI4
	Cantonese Pronunciation: lai4 loi4 loi6
	Japanese On Pronunciation: RAI
	Japanese Kun Pronunciation: KURU
	Tang Pronunciation: *ləi ləi
	Korean Pronunciation: LAY

Greetings.
-- 
Nikola Lečić :: Никола Лечић


More information about the freebsd-questions mailing list