From 26ce3ab66327bae267a8e406769654e400294cd7 Mon Sep 17 00:00:00 2001 From: David Veksler Date: Tue, 13 Aug 2024 09:00:43 -0600 Subject: [PATCH] enable emoji rendering --- Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Program.cs b/Program.cs index 46c5ca9..5e521cd 100644 --- a/Program.cs +++ b/Program.cs @@ -2,6 +2,9 @@ using System.Text; using CodeContext; +Console.OutputEncoding = Encoding.UTF8; + + var path = args.Length > 0 ? args[0] : MyAppsContext.GetUserInput("Enter the path to index: "); var defaultOutput = Path.Combine(Path.GetDirectoryName(path), "context.txt"); var output = args.Length > 1 ? args[1] : MyAppsContext.GetUserInput($"Enter output file (default: {defaultOutput}): ");