Export CSV in UTF-8 Format Add the following string at the beginning of the file: $output = “\xEF\xBB\xBF” . $output;