How to: Use Unicode Surrogate Pairs in the Editor

The Unicode standard defines surrogate pairs to support characters that are not among the 65,536 that are defined in 16-bit Unicode. For more information, see Unicode Support for Surrogate Pairs and Combining Character Sequences.

Visual Studio supports the use of surrogate characters in the Code Editor.

To use Unicode surrogate pairs in the Visual Studio code editor

  1. Install the latest updates for your operating system from https://windowsupdate.microsoft.com to ensure that the latest Unicode support package for the supplementary character Input Method Editor (IME) and fonts.

  2. On the taskbar, click Start, and then click Control Panel.

  3. Open Regional and Language Options.

  4. Click the Languages tab and then click Details.

    The Text Services and Input Languages dialog box appears.

  5. In Default input language, select your preferred language.

  6. Click Language Bar and then select Show the Language bar on the desktop.

  7. Click OK and then click OK again.

  8. Click OK to close the Regional and Language Options dialog box.

  9. On the Language Bar, click Input Style and then click Properties.

    Tip

    The Language Bar can often be found docked on the right of the Windows taskbar.

  10. In the Properties for Microsoft IME Standard dialog box, under Input settings, make sure that the option listed for Input method is compatible with the language you selected in step 5.

  11. Click OK.

    You can now use Unicode surrogate pairs when working with code files in the Visual Studio Code Editor.

See Also

Reference

Code and Text Editor