Insert Unicode characters via the keyboard?

81

35

I am familiar with inserting an ASCII character into a text document by using 'Alt+ASCII code' on the NumPad keys (e.g. Alt+130 inserts an é character).

Is there a similar way to insert a Unicode character via the keyboard using the unicode value given in Windows Character Map?

alt text

pelms

Posted 2009-09-27T08:10:58.760

Reputation: 8 283

Question was closed 2017-03-12T11:31:48.960

the proposed and flagged queston is better that question pointed by Arjan. The question come later but the good response come in here first. Perhaps because this question is better written. I find that the questions are different ! This question is better because the answer indicate that Windows must be rebooted ! – schlebe – 2018-03-18T19:17:58.737

2

See also "How do you type Unicode characters using hexadecimal codes?" at http://superuser.com/questions/13086/how-do-you-type-unicode-characters-using-hexadecimal-codes/

– Arjan – 2009-09-27T11:39:55.607

Answers

68

According John D. Cook there are 3 ways:

  1. In Microsoft Word you can insert Unicode characters by typing the hex value of the character then typing Alt-x. You can also see the Unicode value of a character by placing the cursor immediately after the character and pressing Alt-x. This also works in applications that use the Windows rich edit control such as WordPad and Outlook.
  2. Another approach which works with more applications is as follows. First create a registry key under HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad of type REG_SZ called EnableHexNumpad, set its value to 1, and reboot. Then you can enter Unicode symbols by holding down the Alt key and typing the plus sign on the numeric keypad followed by the character value. When you release the Alt key, the symbol will appear. This approach worked with most applications I tried, including Firefox and Safari, but did not with Internet Explorer.
  3. Another option is to install the UnicodeInput utility. This worked with every application I tried, including Internet Explorer. Once installed, the window below pops up whenever you hold down the Alt key and type the plus sign on the numeric keypad. Type the numeric value of the character in the box, click the Send button, and the character will be inserted into the window that had focus when you clicked Alt-plus.

I would go for the second option because it integrates nicely with your current usage.

Davy Landman

Posted 2009-09-27T08:10:58.760

Reputation: 4 194

Is option 2 supposed to work in Word (2013) and other rich edit controls? I could only make it work in Excel and non-MS apps such as Firefox and Notepad++ (on Windows 7). – Didier L – 2016-09-14T08:47:42.160

Found Unicode Input Utility which is better than UnicodeInput, as it allows searching for symbols!

– Janis Veinbergs – 2018-11-23T13:03:05.917

The answer is confusing in the point 2: for the "Key" HKEY_CURRENT_USER\Control Panel\Input Method, a "Value" of type "String Value" (REG_SZ) must be created, with the name EnableHexNumpad and the value 1. Moreover, the "character value" must be the hexadecimal value of the Unicode character, made of digits from 0 to 9 (to be typed via the numeric keypad) and letters A to F. For instance, Alt + +20AC will type the Euro sign (€)

– Sandra Rossi – 2020-02-20T17:29:45.093

13Option 2 works great, thanks. BTW, the location of the new string key was HKCU/Control Panel/Input Method/EnableHexNumpad – pelms – 2009-09-27T09:08:19.860

24

If you're using Chrome or Safari, you can open up the console with Ctrl+Shift+I (or Cmd+Alt+I on Mac) and type copy('\uNNNN') – where the NNNN is the Unicode code after the +:

Right-to-Left Override U+202E copy('\u202e')

You can do that with Firefox, too, but you'll need Firebug.

Update (April 11, 2015): It works fine in Firefox's built-in console, too.

nyuszika7h

Posted 2009-09-27T08:10:58.760

Reputation: 2 024

3

Note, that this will not work for emoji out of the box. That’s because Javascript uses UTF-16 and splits the Unicode characters outside the Basic Multilingual Plane in twice. In this case you need the notation copy('\u{1F4A9}'). See this post for technical details.

– Boldewyn – 2015-09-25T11:43:13.200

1It doesn't seem to be working. Is my Google Chrome too new? I am using version 25. Typing copy('\u202e') and pressing Enter at Console prompt returns undefined. Could it be that they have changed it? – Samir – 2013-03-16T23:32:17.320

2@Sammy It works, the character gets copied to the clipboard, you can paste it afterwards. – leonbloy – 2013-05-15T20:42:32.240

On newer versions of Chrome, you can also press F12 instead of Ctrl+Shift+I – radomaj – 2014-03-12T09:36:46.493

Although you'll probably want to copy the character anyway, copy() is technically not necessary: 'There's no \u260E on the \u263E, but there may be a \u26C4.' "There's no ☎ on the ☾, but there may be a ⛄." – basic6 – 2014-05-01T13:12:40.880

7

On Windows hit WIN + R (run), type charmap and do search in UNICODE field. it actually do solve my problem, whereas ALT + code didn't help (link).

Roger Alien

Posted 2009-09-27T08:10:58.760

Reputation: 171

3

John D. Cook's solutions didn't work for me, as my employer has locked down the registry. I discovered that in Windows 7 and above, the Segoe UI Symbol font contains representations of most if not all of the Unicode characters in numeric order. If you can find a Unicode symbol meeting your needs (perhaps by browsing through the Unicode article in Wikipedia), note its Unicode number (hex value). Then, back in Word, choose Insert Symbol | More Symbols from the ribbon, select the Segoe UI Symbol font, and scroll through the screens looking for that hex value in the character code box.

user598830

Posted 2009-09-27T08:10:58.760

Reputation: 31

3

I will shamelessly plug a little tool I wrote for entering symbols in Windows as I find any solution usually presented too cumbersome for daily frequent use. My personal use case is typing the Swedish å for example on an international US keyboard without having to switch layouts.

It allows the entering of unicode characters through a popup window not dissimilar to how this works in Apple OS X.

See https://github.com/mjvh80/SymWin for details, it's free and open source, but must (currently) be built, if there is sufficient interest I could add a pre-built version.

The tool can be configured per key, e.g. by copy/pasting symbols once from a site such as http://copypastecharacter.com. It comes preconfigured with various symbols.

Marcus

Posted 2009-09-27T08:10:58.760

Reputation: 131

3

The easiest way: The Microsoft Keyboard Layout Creator. This is an official Microsoft solution. Functionality is similar like Ukelele for OS X.

Download and instructions: http://msdn.microsoft.com/en-GB/goglobal/bb964665.aspx

Adam Szabo

Posted 2009-09-27T08:10:58.760

Reputation: 151

By "easiest", you must mean "easiest to use on an ongoing basis in which you're free to map keys to characters in whatever way you prefer", not "with the least amount of initial effort". I have used the Microsoft Keyboard Layout Creator, and while it works well, it's not for casual users. – Alan – 2015-07-17T03:25:19.170

2

If you're using Firefox, you can also install the Unicode Input Tool/Converter add-on.

KdgDev

Posted 2009-09-27T08:10:58.760

Reputation: 4 708

1

Press and hold down the Alt key. Press the + (plus) key on the numeric keypad. Type the hexidecimal unicode value. Release the Alt key. Alas, this appears to require a registry setting. It is usually set but if needed, under HKEY_Current_User/Control Panel/Input Method, set EnableHexNumpad to "1". If you have to add it, set the type to be REG_SZ.

source: http://www.fileformat.info/tip/microsoft/enter_unicode.htm

Luiz Cruz

Posted 2009-09-27T08:10:58.760

Reputation: 11

2This duplicates another answer and adds no new content. Please don't post an answer unless you actually have something new to contribute. – DavidPostill – 2016-10-14T08:32:43.043

0

Firefox: While holding control+shift, enter u followed by the ordinal of the unicode character. That will insert it, without needing to install an addon.

djhaskin987

Posted 2009-09-27T08:10:58.760

Reputation: 349

What version/OS? This doesn't work for me with FF38.1 – Scribblemacher – 2016-05-04T12:00:55.503

1This is how Linux does it. Are you sure it is specific to Firefox? – Seth – 2017-02-21T00:11:59.750

0

I was typing in Chinese (Traditional, Taiwan) in its default input method (Microsoft Bopomofo) and discovered this (tested on XP and Win10):

  1. Press ` key (grave accent, placed in the top left corner to the left of the 1 key).
  2. Press U key.
  3. Enter hex value.
  4. Press Enter.

You can also install Microsoft Bopomofo as a "Unicode IME".

Icosie

Posted 2009-09-27T08:10:58.760

Reputation: 1