고수분들 또는 관리자님 도움 요청요~

유니코드(utf-8) 로 변환해서 쓰는데,, 특별히 문제되는건 없어요.

딱 1개 궁금한점입니다.

뭣때문인지 몰라도 저는 개인서버에 설치해서 한글 입출력이 자유롭습니다. 별 문제도 없구요.
(로케일이 utf-8 이라서 그런지 모르겠습니다.)

그런데, 호스팅을 받는 분들이나, 윈도우에서 apm_setup 같은걸로 돌리시는 분들보면

alert() 메시지 뿌릴때 한글 깨짐현상이 나오거나

header 정보를 수정할수 없다는 경고가 나온답니다.

alert() 위에다가
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
요걸 입혀주는것은 가끔 게시판이 오작동할때도 있습니다.

한방에~~~~~~~~~~~~ 모든 alert() 에서
$g4[charset] 을 먹일 방법은 없나요?
|

댓글 3개

lib/common.lib.php 의 alert() 함수에 넣어 주시면 될듯 싶습니다.


// 경고메세지를 경고창으로
function alert($msg='', $url='')
{
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';

echo "<script language='javascript'>alert('$msg');";
if (!$url)
echo "history.go(-1);";
echo "</script>";
if ($url)
// 4.06.00 : 불여우의 경우 아래의 코드를 제대로 인식하지 못함
//echo "<meta http-equiv='refresh' content='0;url=$url'>";
goto_url($url);
exit;
}
캬~ 제가 이방법을 추천했는데 아직 테스트를 못하신 모양이에요^^ 감사합니다.
그렇게 하면 글씨는 안깨지고 잘나오는데요...
Warning: Cannot modify header information - headers already sent by (output started at c:\apm_setup\htdocs\gnuboard4\lib\common.lib.php:1) in c:\apm_setup\htdocs\gnuboard4\head.sub.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at c:\apm_setup\htdocs\gnuboard4\lib\common.lib.php:1) in c:\apm_setup\htdocs\gnuboard4\head.sub.php on line 57

Warning: Cannot modify header information - headers already sent by (output started at c:\apm_setup\htdocs\gnuboard4\lib\common.lib.php:1) in c:\apm_setup\htdocs\gnuboard4\head.sub.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at c:\apm_setup\htdocs\gnuboard4\lib\common.lib.php:1) in c:\apm_setup\htdocs\gnuboard4\head.sub.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at c:\apm_setup\htdocs\gnuboard4\lib\common.lib.php:1) in c:\apm_setup\htdocs\gnuboard4\head.sub.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at c:\apm_setup\htdocs\gnuboard4\lib\common.lib.php:1) in c:\apm_setup\htdocs\gnuboard4\head.sub.php on line 61
-----------
이렇게 뜨는데 뭐가 문제 일까요?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
20년 전 조회 1,905
20년 전 조회 1,522
20년 전 조회 1,565
20년 전 조회 1,512
20년 전 조회 1,759
20년 전 조회 1,571
20년 전 조회 1,407
20년 전 조회 1,775
20년 전 조회 2,367
20년 전 조회 1,566
20년 전 조회 1,512
슈가쭌
20년 전 조회 1,520
20년 전 조회 1,251
20년 전 조회 1,529
20년 전 조회 1,580
20년 전 조회 1,460
20년 전 조회 1,517
20년 전 조회 1,555
20년 전 조회 1,622
재롱
20년 전 조회 1,585
🐛 버그신고