diff --git a/ExtLibs/Utilities/DFLog.cs b/ExtLibs/Utilities/DFLog.cs index 72a2758e15..221b590dce 100644 --- a/ExtLibs/Utilities/DFLog.cs +++ b/ExtLibs/Utilities/DFLog.cs @@ -88,7 +88,8 @@ public string[] items if (a.IsNumber()) return (((IConvertible)a).ToString(CultureInfo.InvariantCulture)); else - return a?.ToString(); + if (a is System.Byte[]) return (System.Text.Encoding.ASCII.GetString(a as byte[]).Trim('\0')); + else return a?.ToString(); }).ToArray(); } return _items; @@ -751,4 +752,4 @@ public long GetLineNoFromTime(DFLogBuffer logdata, DateTime p1) return 0; } } -} \ No newline at end of file +}