In root of your project create file called .dir-locals.el with content:
((nil . ((buffer-file-coding-system . utf-8))))
It will apply this coding to any mode and file.
You may see more info here https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html