We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a4c6af commit 816316eCopy full SHA for 816316e
tests/scripts/scriptlib.fsx
@@ -28,6 +28,11 @@ module Scripting =
28
let ensureConsole () =
29
if GetConsoleWindow() = IntPtr.Zero then
30
AllocConsole() |> ignore
31
+ // Set UTF-8 encoding for console input/output to ensure FSI receives UTF-8 data.
32
+ // This is needed because on net472 ProcessStartInfo.StandardInputEncoding is unavailable,
33
+ // so the spawned process inherits the console's encoding settings.
34
+ Console.InputEncoding <- Text.UTF8Encoding(false)
35
+ Console.OutputEncoding <- Text.UTF8Encoding(false)
36
#endif
37
#if NETCOREAPP
38
let ensureConsole () = ()
0 commit comments