declare Encoding

declare() with the encoding keyword specifies the encoding of the file that holds PHP script. This applies to the current file only.

<?php
    declare(encoding='UTF-8');
?>

Documentation

Related : declare()