Answer the question
In order to leave comments, you need to log in
How to open files in phpstorm with correct encoding?
If I connect via ftp/sftp to the server via Notepad++, the files are opened in the encoding they are on the server and I can work with them, save them without fear that I will break the encoding. In phpstorm, when I open it, very often there are question marks, I need to constantly reopen it in a new encoding, go to the site, look in which one. How to open files right away in the encoding in which they are on the server?
The option with crtl-alt-s ->File Encodings is also bad, because again I have to set a static encoding there, and files can be of different encodings.
Answer the question
In order to leave comments, you need to log in
Good evening.
Customize this check for yourself.
['date_to', 'date', 'when' => function($model){
return strtotime($model->date_to) < strtotime($model->date_from);
}]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question