Print with UTF-8 encoding
This commit is contained in:
@@ -208,7 +208,10 @@ namespace LibIRD
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Print()
|
public void Print()
|
||||||
{
|
{
|
||||||
|
// Build string from parameters
|
||||||
StringBuilder print = new StringBuilder("PARAM.SFO Contents:\n====================\n");
|
StringBuilder print = new StringBuilder("PARAM.SFO Contents:\n====================\n");
|
||||||
|
|
||||||
|
// Loop through all parameters in PARAM.SFO
|
||||||
for (int i = 0; i < ParamCount; i++)
|
for (int i = 0; i < ParamCount; i++)
|
||||||
{
|
{
|
||||||
print.Append(Params[i].Name);
|
print.Append(Params[i].Name);
|
||||||
@@ -226,6 +229,11 @@ namespace LibIRD
|
|||||||
}
|
}
|
||||||
print.Append('\n');
|
print.Append('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure UTF-8 will display properly
|
||||||
|
Console.OutputEncoding = Encoding.UTF8;
|
||||||
|
|
||||||
|
// Print formatted string
|
||||||
Console.Write(print);
|
Console.Write(print);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user