From 9ecd085f8e341ad774c00fecb48ae7eaeda33d5c Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Sun, 29 Oct 2023 00:14:20 +1300 Subject: [PATCH] Print with UTF-8 encoding --- LibIRD/ParamSFO.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/LibIRD/ParamSFO.cs b/LibIRD/ParamSFO.cs index af4bed5..3efa3ae 100644 --- a/LibIRD/ParamSFO.cs +++ b/LibIRD/ParamSFO.cs @@ -208,7 +208,10 @@ namespace LibIRD /// public void Print() { + // Build string from parameters StringBuilder print = new StringBuilder("PARAM.SFO Contents:\n====================\n"); + + // Loop through all parameters in PARAM.SFO for (int i = 0; i < ParamCount; i++) { print.Append(Params[i].Name); @@ -226,6 +229,11 @@ namespace LibIRD } print.Append('\n'); } + + // Ensure UTF-8 will display properly + Console.OutputEncoding = Encoding.UTF8; + + // Print formatted string Console.Write(print); } }