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
This commit is contained in:
ousttrue 2018-08-26 13:29:25 +09:00
parent 8e6c113356
commit b1552585e5
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -56,7 +56,7 @@ namespace VRM
spring.boneGroups.Add
);
File.WriteAllText(path, spring.ToJson(), Encoding.UTF8);
File.WriteAllText(path, spring.ToJson());
}
#endregion