Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am wondering what the best way to discover the ASCII or Unicode values of a character in Linux is. For example, in Windows I could cut and paste the character into a Wordpad doc, then hit Alt-X to find out the value.
Is there a similar way to do this with Linux? I am trying to identify values for some odd multibyte characters and this is (thus far) eluding me!
No, there's no way to know what chart will contain the character. For example, if I have "»" how do I know which chart to use? If I already know its value, then yes, the charts are helpful because they contain a range of similar characters. But if I only have the character itself...how can I find its value? Looking through the hundreds of thousands of characters until I find it isn't an option. :-)
Last edited by goemon; 02-07-2012 at 11:34 AM.
Reason: updated with better example char
Whoops, no, that is NOT the way 4ward....
I looked into the it and found a site where you can enter the code (tried the one you provided) and see what character that is...this searcher seems to work as well.
Please try it and post back with your thoughts...
You can use a hex editor in the way you use wordpad; look in your distro's package installer to see what's available. Alternatively, if you know what it's called, you can search the character map: looking for 'fourth root' takes you to U+221C.
@SecretCode and DavidMcCann, if I can combine your two posts I'll have exactly what I'm looking for! :-) Ideally it would be a command or shell script that will take an input that's just cut and pasted, then return a nice Unicode value. Alternatively, if I can take the hexdump value (bbc2) and then transmogrify it to a Unicode value in two steps rather than one, that's fine too! Any thoughts?
I felt there must be a canonical translation between UTF-8 representations and Unicode points, but I looked for a while and couldn't find it. 101% of the web pages about converting unicode are unicode --> visible character, not the other way.