Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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 "Surrogates" at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_192r.asp.

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 http://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.


    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

Community Additions

© 2015 Microsoft