Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- class UnicodeCharacters
- {
- static void Main()
- {
- string input = Console.ReadLine();
- StringBuilder sb = new StringBuilder();
- foreach (var character in input)
- {
- sb.Append("\\u");
- sb.Append(String.Format("{0:x4}", (int)character)); ;
- }
- Console.WriteLine(sb.ToString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement