utf-8 에러 > 그누4 질문답변

그누4 질문답변

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

utf-8 에러 정보

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

댓글 전체

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 |RSS

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT