Find Alt-code for any character

10

3

Sometimes, an alt-code that I find on the internet does not work on my PC, for example Pi alt code (Alt+227) throws Ń isntead of π.
So I need to use the character in clipboard (or in a file or wherever) and conver it to Alt-code compatible with my system. Is this possible?

Tomáš Zato - Reinstate Monica

Posted 2013-10-07T19:08:58.837

Reputation: 2 932

Answers

8

The Alt code are system-dependent: they depend on the local of the system. In some situations, it also depends on the application software. An Alt number code works consistently only when number is less than 127.

General info: How to enter Unicode characters in Microsoft Windows.

Jukka K. Korpela

Posted 2013-10-07T19:08:58.837

Reputation: 4 475

7

You can start "Character map", choose your font, search you character and at the bottom (in the status bar) is the Alt code you need.

(In Windows 7 you can press Start and begin type Character map en choose it at the top.)

The fact that you get a different character with Alt + 227 is probably that you're using a different font. So choosing the right font in "Character map" is important.

BTW nowadays the Alt combinations consists of a 4 digit number to accommodate a wider range of Unicode characters. The three numbers still work but the Alt + 227 is different from Alt + 0227.

Character map

Rik

Posted 2013-10-07T19:08:58.837

Reputation: 11 800

3It's not because of different font. The difference is the same accross fonts and applications. – Tomáš Zato - Reinstate Monica – 2013-10-07T20:44:58.393

2

Also, the keystroke is NOT displayed for all the letters. Have a look.

– Tomáš Zato - Reinstate Monica – 2013-10-07T20:49:48.100

Alt+227 is Pi in the old MS-DOS ascii-set. It used to work in MS-DOS applications (I think thats why they float all over the internet). I see you are right that some letters don't have Alt-codes. I should test if the Alt++ works with the Unicode ones. – Rik – 2013-10-07T20:56:34.080

I can't get the Pi to work either in random application. I can however get it to work in Wordpad and Word. Type 03c0. Now type Alt+X and the 03c0 is converted to π. This is method 4 of the link Jukka suggested. I can't get the Alt+++code to work. – Rik – 2013-10-07T21:20:51.347

You must change the registry entry and relogin. I didn't try it however, so maybe it doesn't work at all. (I have heavy problems with relogin or restart, because of my system status) Besides that, I just discovered zergling walking on my wall, so I'm focusing on it. – Tomáš Zato - Reinstate Monica – 2013-10-07T21:40:13.040

You don't need to change the registry. Rik is correct that it can change from font to font, although many common fonts will use the same value for the same characters. You also need to set the character encoding. In Charmap, checkmark the box for "Advanced View" and you'll have a few more options. One is "character set", which is essentially Codepage. In Arial, pi is "0xE3" which is indeed 227. But the reason it may not work "on the internet" is that the HTML code for pi is Π or Π i.e. what you see on a webpage is not the ascii representation of pi. Also some programs don't accept alt+ – Debra – 2013-10-08T02:34:20.760

3

Alt codes only work up to 255. There's a slight trick: adding a lead 0 will give you consistent results. Alt-0227 consistently is ã. But since Alt codes only work up to 0255, it's clear that the thousands of characters needed for Chinese, Korean, Russian, Greek, etc. can't all be supported. The only greek character I found was Alt-0181 µ (mu).

MSalters

Posted 2013-10-07T19:08:58.837

Reputation: 7 587

Alt+0181 represents Micro Sign (µ, Unicode U+00B5) not Greek Small Letter Mu (μ, Unicode U+03BC). Similar or even seemingly same glyph (look) but different character! Anyone could get a proof using next windows command line statement: if "µ"=="μ" (echo same) else (echo diff) – JosefZ – 2016-01-11T21:22:12.780

@JosefZ: As an engineer, I consider 3 micrometer = 3 micron = 3 mu. And Unicode apparently agrees with me, U+00B5 is a compatibility character. They couldn't move µ to U+03BC without breaking the Latin-1 block. (U+0080-U+00FF is identical to 8859-1 0x80-oxFF) so they copied it.

– MSalters – 2016-01-11T21:32:22.313

From your source: Though not the intention of Unicode to encode such measuring units the repertoire includes six (6) such symbols that should not be used by authors: the characters' decompositions should be used instead. …, Micro Sign (µ U+00B5: use U+03BC instead). – JosefZ – 2016-01-11T21:55:15.783

As a programmer: if ("µ" -Match "μ") {"same"} else {"diff"} in PowerShell (which supports Unicode natively) returns diff. – JosefZ – 2016-01-11T22:49:15.430

@JosefZ: Don't read too much in that. Microsoft is know to implement Unicode string comparison incorrectly, with ä being unequal to ä depending on the representation. It shouldn't have been a binary comparison. – MSalters – 2016-01-12T08:11:41.527