From b1552585e57ff9024488a697a5aeb6faa06ab6f3 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Sun, 26 Aug 2018 13:29:25 +0900 Subject: [PATCH] Removed utf8bom * https://github.com/dwango/UniVRM/pull/27 * https://msdn.microsoft.com/ja-jp/library/ms143375(v=vs.110).aspx * File.WriteAllText(path, str, Encoding.UTF8) is with BOM * File.WriteAllText(path, str) default encoding is without BOM --- Scripts/Format/Editor/VRMVersionMenu.cs | 4 ++-- Scripts/SpringBone/VRMSpringUtility.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/Format/Editor/VRMVersionMenu.cs b/Scripts/Format/Editor/VRMVersionMenu.cs index e17f843ac..c3c4d82a7 100644 --- a/Scripts/Format/Editor/VRMVersionMenu.cs +++ b/Scripts/Format/Editor/VRMVersionMenu.cs @@ -91,7 +91,7 @@ namespace VRM var subJson = subFormatter.ToString(); var path = dir.Child(fileName); - File.WriteAllText(path.FullPath, subJson, Encoding.UTF8); + File.WriteAllText(path.FullPath, subJson); } } } @@ -136,7 +136,7 @@ namespace VRM var path = dir.Child("vrm.schema.json"); Debug.LogFormat("write JsonSchema: {0}", path.FullPath); - File.WriteAllText(path.FullPath, json, Encoding.UTF8); + File.WriteAllText(path.FullPath, json); return path; } diff --git a/Scripts/SpringBone/VRMSpringUtility.cs b/Scripts/SpringBone/VRMSpringUtility.cs index 75a1b7a1c..e555d36e8 100644 --- a/Scripts/SpringBone/VRMSpringUtility.cs +++ b/Scripts/SpringBone/VRMSpringUtility.cs @@ -56,7 +56,7 @@ namespace VRM spring.boneGroups.Add ); - File.WriteAllText(path, spring.ToJson(), Encoding.UTF8); + File.WriteAllText(path, spring.ToJson()); } #endregion