Sublime Forum

How to avoid / in beginning of file

#1

Hi

I have a new problem with Sublime Text 3, that I have never had before.

Suddenly Sublime Text 3 starts to replace the " /* " I have in the beginning of my file with a " / " which my compiler doesn’t like.

What is going on and how do I stop it from happening?

0 Likes

#2

 is UTF-8 BOM in ISO-8859-1 (Latin-1).

0 Likes

#3

Does using File > Save with encoding > UTF-8 (not with BOM) help?

1 Like

#4

Should repoen with UTF-8 but I doubt that ST 3 should’ve do this automatically unless the file is already saved in a wrong encoding…

0 Likes

#5

ST should see the BOM and open the file as UTF-8 with BOM automatically. Does it happen in SAFE MODE? (ST4 only). If you are still on ST3 you might want to check any plugins being involved.

1 Like

#6

Yes it helps… until next time.
I would need to save with UTF-8 (not with BOM) every time :frowning:

0 Likes