OK, I've wasted an hour trying to figure out HOW TO CHANGE ENCODING of .js files...
The file is encoded in Win-1251, but Idea X is brain-dead-stubborn trying to read it as UTF8.
I've changed project-level encoding to Win-1251. I've disabled UTF8 autodetection. I've searched the Knowledgebase and forums. I've prayed to Javanese gods. Nothing helps. :(
All the other files have correct encodings, but those freaking .js are still UTF8 no matter what, and even refuse to change encoding manually file by file (the option is grayed).... Crap!
So, could anyone please please show me the way cause I've gone crazy and start hating Idea for the rest of my life?