From ebd4328f028d203767a19c99d39a3e172875f354 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Mon, 8 Feb 2021 16:22:37 +0100 Subject: [PATCH] Merge pull request #5188 from cvium/fix_manifest_bom Exclude BOM when writing meta.json plugin manifest (cherry picked from commit fba80cf6f9f465de79775bb5b8f12554814da550) Signed-off-by: Joshua M. Boniface --- Emby.Server.Implementations/Plugins/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs index adf62124a7..51e9ba1efe 100644 --- a/Emby.Server.Implementations/Plugins/PluginManager.cs +++ b/Emby.Server.Implementations/Plugins/PluginManager.cs @@ -348,7 +348,7 @@ namespace Emby.Server.Implementations.Plugins try { var data = JsonSerializer.Serialize(manifest, _jsonOptions); - File.WriteAllText(Path.Combine(path, "meta.json"), data, Encoding.UTF8); + File.WriteAllText(Path.Combine(path, "meta.json"), data); return true; } #pragma warning disable CA1031 // Do not catch general exception types