diff --git a/YoutubeExplode/Utils/Extensions/BinaryExtensions.cs b/YoutubeExplode/Utils/Extensions/BinaryExtensions.cs index d8eac127..52b5e80b 100644 --- a/YoutubeExplode/Utils/Extensions/BinaryExtensions.cs +++ b/YoutubeExplode/Utils/Extensions/BinaryExtensions.cs @@ -1,4 +1,5 @@ -using System.Text; +using System.Globalization; +using System.Text; namespace YoutubeExplode.Utils.Extensions; @@ -11,7 +12,7 @@ public static string ToHex(this byte[] data, bool isUpperCase = true) foreach (var b in data) { buffer.Append( - b.ToString(isUpperCase ? "X2" : "x2") + b.ToString(isUpperCase ? "X2" : "x2", CultureInfo.InvariantCulture) ); }