Skip to content

Commit be0460f

Browse files
committed
ModuleScriptEditor: Changed to write in bytes
1 parent af68552 commit be0460f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Editors/ModuleScriptEditor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using static System.IO.File;
88
using static System.IO.Path;
99
using static System.Reflection.Assembly;
10+
using static System.Text.Encoding;
1011
using static System.Uri;
1112
using static KeepCoding.Logger;
1213
using static KeepCoding.ModuleScript;
@@ -83,7 +84,7 @@ private static IEnumerator InstallLatest(string tagName, string extension)
8384

8485
Self($"Installing the latest {extension} file...");
8586

86-
WriteAllText(Combine(SelfPath, $"KeepCoding {tagName}.{extension}"), web.downloadHandler.text);
87+
WriteAllBytes(Combine(SelfPath, $"KeepCoding {tagName}.{extension}"), UTF8.GetBytes(web.downloadHandler.text));
8788
}
8889
}
8990
}

0 commit comments

Comments
 (0)