Skip to content

Commit

Permalink
Use plain UTF-8 (no BOM)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcomboom committed Oct 24, 2019
1 parent 51fd470 commit bd3b485
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 194 deletions.
4 changes: 2 additions & 2 deletions Editor.vb
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ Public Class Editor
'End Using
'outStream.Dispose()
Try
Code.SaveToFile(path, System.Text.Encoding.UTF8)
Code.SaveToFile(path, Main.encodingType)
Catch
Try
Dim unlocker = New FileStream(path, FileMode.Open)
unlocker.Unlock(1, unlocker.Length)
unlocker.Close()
Code.SaveToFile(path, System.Text.Encoding.UTF8)
Code.SaveToFile(path, Main.encodingType)
Catch ex As Exception
MsgBox("The file could not be saved.", MsgBoxStyle.Critical, "AutoSite XL")
End Try
Expand Down
Loading

0 comments on commit bd3b485

Please sign in to comment.