I'm trying to capture output from a console application by running it in a test using System.Diagnostics.Process. I'm having trouble with character encoding. "£" is showing up as "œ" in the test, but when I run the console application it displays correctly as "£".
If I set Console.Out.Encoding = Encoding.Default, it works in the tests but doesn't display properly when running normally.
What's going on here and how do I fix it?