PHP Storm is changing my javascript code (variables to weird chars)

In this code:

top.cht = top.cht || {};
var cht = top.cht;

It makes my code:

top.cht = top.cht || {};
var afr= top.cht;

And I cannot change it back. But when I copy the code and paste into another editor, it shows up correctly.

Is this a bug (7.1.3)



What is your file encoding and editor font settings? Can you attach a file that shows up the issue?


Fortunately, because of your question, I've changed my font to something else and it solved the problem. My encoding was utf-8. Thank you. It was a font issue appearently.


Please sign in to leave a comment.