Header Content Type Charset UTF-8 with BOM
问题 Im currently making a file that some have to download and upload. The file have som differents encodings and it only works if the file is opened with UTF-8 with BOM. Currently im using this simple header header('Content-Type: text/html; charset=utf-8'); but how can i change the settings so file file would be seen as UTF-8 with BOM. Hoping for some help. Thanks! 回答1: There's absolutely no need to include a BOM in an HTML file. (If it really includes different encodings, then a UTF-8 BOM would