utf-8 에러

그누보드를 utf-8로 세팅하고 index화일을 다음과 같이 하였더니

<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>

홈페이지에서 다음과 같은 메시지가 뜨네요.
뭐가 잘못되었나요? 알려주시면 감사하겠습니다.

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/lib/common.lib.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/lib/common.lib.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/lib/common.lib.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/citymark/www/index.htm:1) in /home/hosting_users/citymark/www/head.sub.php on line 38
|

댓글 1개

utf-8 에러가 아니구요. 헤더를 전송해 놓고 또 전송하려니 에러가 발생하는겁니다.

head.sub.php 파일에 헤더 선언부분이 있습니다.

그리고 케릭터셋을 선언하는 부분은 config.php 파일안에

$g4['charset'] = "euc-kr"; <= 요줄을 찾아서 원하는 케릭터 셋을 선언하세요.

아래 부분은 지우세요.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13년 전 조회 950
13년 전 조회 2,179
13년 전 조회 1,518
13년 전 조회 815
13년 전 조회 834
13년 전 조회 1,699
13년 전 조회 986
13년 전 조회 1,534
13년 전 조회 1,690
13년 전 조회 1,558
13년 전 조회 1,739
13년 전 조회 1,014
13년 전 조회 1,594
13년 전 조회 1,544
13년 전 조회 970
13년 전 조회 882
13년 전 조회 1,436
13년 전 조회 1,763
13년 전 조회 1,524
13년 전 조회 1,975
🐛 버그신고