Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Convert string to unicode representation
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace SampleTest { public static class Extension { public static string ToUnicodeString(this string str) { StringBuilder sb = new StringBuilder(); foreach(var c in str) { sb.Append("\\u" + ((int) c).ToString("X4")); } return sb.ToString(); } } public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!".ToUnicodeString()); } } }
run
|
edit
|
history
|
help
0
Simple StackOverflowException
sdfgthyjuiujy7htgrf
bubble sort
sdfrgthyjuytrfdf
Shorten SMS Text
ZeroMatrix
Recursion
Test equality...1
Get a webpage - the sync way
sortowania przez wstawienie