How to set UTF-8 encoding for a PHP file April 22, 2023 by Tarik header('Content-type: text/plain; charset=utf-8');