LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices

Reply
 
Search this Thread
Old 02-07-2012, 12:08 PM   #1
goemon
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Rep: Reputation: 0
Equivalent of Alt-X in Wordpad for Linux?


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!

Thank you!
 
Old 02-07-2012, 12:16 PM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,220
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Hi,

How about this page? Click on a language/script/font and you'll get a pdf sent back

Thor
 
Old 02-07-2012, 12:27 PM   #3
goemon
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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 12:34 PM. Reason: updated with better example char
 
Old 02-07-2012, 12:48 PM   #4
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,220
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
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...
 
Old 02-07-2012, 01:48 PM   #5
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,182

Rep: Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801
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.
 
1 members found this post helpful.
Old 02-07-2012, 02:28 PM   #6
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
You can get the UTF-8 encoding with
Code:
hexdump <(echo paste-character-here)
e.g
Code:
hexdump  <(echo -n )
0000000 bbc2                                   
0000002
Of course, that's not the same as the Unicode representation ...
 
1 members found this post helpful.
Old 02-07-2012, 03:22 PM   #7
goemon
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Original Poster
Rep: Reputation: 0
@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?
 
Old 02-08-2012, 01:51 PM   #8
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
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.
 
  


Reply

Tags
ascii, unicode


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux equivalent of Ctrl-Alt-Del? biplab roy Linux - Newbie 26 11-18-2010 12:38 PM
What's the Linux equivalent of MS Wordpad? mikieboy Linux - Desktop 21 03-18-2010 11:13 AM
Linux equivalent of CTRL-ALT-DEL in Windows? ryancw Linux - Newbie 15 02-19-2004 10:58 PM
ctl-alt-del equivalent in linux? pekuekfir Linux - General 14 09-20-2003 01:14 PM


All times are GMT -5. The time now is 09:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration