window.ENTITIES={'/api/snippets/cs/c%23%20insert%20unicode%20character%20to%20string':[{"result":true,"message":null,"batch":{"type":"cs","name":"c# insert unicode character to string","items":[{"id":"p2A4GD","type":"cs","name":"c# insert unicode character to string","content":"string text = \"π or \\u03c0\";\n\nConsole.WriteLine(text); // Output: \"π or π\"","source":"https://dirask.com/posts/C-NET-insert-unicode-character-to-string-jQ35LD","author":{"id":"EagM70","name":"Lillie-Rose-Finnegan","avatar":"1629130106625__EagM70__w40px_h40px.jpg","points":489,"role":"BASIC"},"creationTime":1645117948000,"updateTime":null,"removalTime":null},{"id":"Dd7Ow1","type":"cs","name":"c# insert unicode character to string","content":"using System;\n\npublic class Program\n{\n public static void Main()\n {\n string text = \"π and \\u03c0 are\\u0020equal\"; // U+03C0 U+0020\n\n Console.WriteLine(text); // Output: \"π and π are equal\"\n }\n}","source":"https://dirask.com/posts/C-NET-insert-unicode-character-to-string-jQ35LD","author":{"id":"7ad4da","name":"rmlocerd","avatar":"1629142005670__7ad4da__w40px_h40px.jpg","points":302,"role":"BASIC"},"creationTime":1645117951000,"updateTime":null,"removalTime":null},{"id":"jEbeZ1","type":"cs","name":"c# insert unicode character to string","content":"using System;\n\npublic class Program\n{\n public static void Main()\n {\n string apple = \"\\uD83C\\uDF4F\";\n string banana = \"\\uD83C\\uDF4C\";\n string cherry = \"\\uD83C\\uDF52\";\n\n Console.WriteLine(apple); // 🍏\n Console.WriteLine(banana); // 🍌\n Console.WriteLine(cherry); // 🍒\n }\n}","source":"https://dirask.com/posts/C-NET-insert-unicode-character-to-string-jQ35LD","author":{"id":"z0mM50","name":"Dollie-Rutledge","avatar":"1629030397812__z0mM50__w40px_h40px.png","points":806,"role":"BASIC"},"creationTime":1645117953000,"updateTime":null,"removalTime":null}]}}]};