Advertisement
Guest User

Untitled

a guest
May 10th, 2015
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace UnicodeChara_5
  8. {
  9.     class UnicodeChara_5
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string input = Console.ReadLine();
  14.             string unicode = String.Empty;
  15.             foreach (char i in input)
  16.             {
  17.                 unicode += "\\u" + ((int)i).ToString("X4");
  18.             }
  19.             Console.WriteLine(unicode);
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement