[기타] UTF-8 BOM 관련 에러

UTF-8 BOM 관련 에러

UTF-8을 설치하고 에디터가 아닌 메모장으로 수정하여 저장하면

아래와 같은 에러를 발생시키는 경우가 있다.


Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tinyzip/www/index.php:1) in/home/hosting_users/hacki/www/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tinyzip/www/index.php:1) in/home/hosting_users/hacki/www/head.sub.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tinyzip/www/index.php:1) in/home/hosting_users/hacki/www/head.sub.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tinyzip/www/index.php:1) in/home/hosting_users/hacki/www/head.sub.php on line 27


이러한 에러는 UTF-8저장시 UTF-8 BOM으로 저장되는 경우이기 때문에 BOM방식을 제외하여 저장하면 된다.

에디트플러스의 경우 UTF-8저장시 2가지(UTF-8 BOM, UTF-8)로 저장할 수 있는데 저장방식을 UTF-8로 하면

이러한 에러를 해결할 수 있다





처음 1 2 3 4 다음 맨끝
글쓰기