답변 10개 / 댓글 1개
네 그누보드 아닙니다,
preg_replace() 함수로 모두 바꾸려면 복잡하나요.
어디부분에서 작업하시면 되는가요?
질문 =================================================
카페24에서 godaddy 호스팅으로 이전했는데요.
홈페이지주소 입니다. http://papago.info/
| <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> |
위에처럼 돼있는데요. 어떤부분 수정해야하나요?
질문 =================================================
즉 홈페이지를 카페24 에서 이전 해서 문제가 발생한것이라고 애기 하신거자나요
그런데 왜수정을 해요 서버를 마추어야죠!!
data 문자셋 변환 (euc-kr ->utf-8 변환이 필요한 경우)
리눅스콘솔에서 find 와 iconv 명령어로 파일의 문자셋을 변환합니다.
사용되는 확장자별로 따로따로 작업할 명령어이니 1줄씩 복사에서 넣으시면 됩니다.
마지막에 *.db는 zip.db 파일하나 때문에 넣은겁니다.
find . -type
f -name "*.php" -print -exec iconv -f euc-kr -t utf-8 -o {}.converted
{} \; -exec mv {}.converted {} \;
find . -type f -name "*.html"
-print -exec iconv -f euc-kr -t utf-8 -o {}.conerted {} \; -exec mv
{}.converted {} \;
find . -type f -name "*.htm"
-print -exec iconv -f euc-kr -t utf-8 -o {}.converted {} \; -exec mv
{}.converted {} \;
find . -type f -name "*.js"
-print -exec iconv -f euc-kr -t utf-8 -o {}.converted {} \; -exec mv
{}.converted {} \;
find . -type f -name "*.db"
-print -exec iconv -f euc-kr -t utf-8 -o {}.converted {} \; -exec mv
{}.converted {} \;
문자셋 바꾸어야 하는거아닌가요?
카페24 하고는 상관없는거 같은데요
답변을 작성하려면 로그인이 필요합니다.

eregi_replace() 함수를 preg_replace()함수로 바꿔 줘야 PHP5.3 이상에서 에러 없이
사용하실 수 있습니다.
구글링해서 preg_replace()함수를 검색해 보면 쉽게 수정 가능할 겁니다.