반응형
반응형
반응형

페이지 인코딩설정.

test.jsp
<%@ page language="java" import="java.util.*, java.sql.*" session="true" contentType="text/html;charset=euc-kr" pageEncoding="euc-kr" %>
<% // 중요한건 pageEncoding="euc-kr"

request.setCharacterEncoding("euc-kr");  // 이것도 중요
...
%>



=================== 오라클이라면 위한 설정. ================

shell profile을 보면 (bash라면 .bash_profile)
#export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601;
export NLS_LANG=AMERICAN_AMERICA.KO16MSWIN949;

와 같이 바꾸어줍시다
oracle 9i 부터는 win949가 ksc5601을 포함하게 되었죠..
cp949짱!

반응형

'WEB > CGI' 카테고리의 다른 글

*OutputStream 한글 인코딩 처리  (0) 2010.10.21
JSP 파일 업로드  (0) 2010.10.21
PHP 파일의 확장자 분리하기  (0) 2010.10.21
E-mail programming 관련  (0) 2010.10.20
PHP 문자열중 원하는 Tag만 제거하기  (0) 2010.10.19
반응형
반응형
반응형
http://kr.php.net/manual/kr/function.strip-tags.php
아래 코멘트로 많은 응용버전이 존재. 그중 하나.

function strip_only($str, $tags) {
    if(!
is_array($tags
)) {
       
$tags = (strpos($str, '>') !== false ? explode('>', str_replace('<', '', $tags)) : array($tags
));
        if(
end($tags) == '') array_pop($tags
);
    }
    foreach(
$tags as $tag) $str = preg_replace('#</?'.$tag.'[^>]*>#is', '', $str
);
    return
$str
;
}

반응형

'WEB > CGI' 카테고리의 다른 글

*OutputStream 한글 인코딩 처리  (0) 2010.10.21
JSP 파일 업로드  (0) 2010.10.21
PHP 파일의 확장자 분리하기  (0) 2010.10.21
E-mail programming 관련  (0) 2010.10.20
JSP에서 한글인코딩이 안될때  (0) 2010.10.20
반응형

CKEDITOR 이미지 섹션에 이미지 업로드된 서버보기가 존재하는데
그 것을 없애게 (여러명이 공유해서 사용하는 경우)하는 방법

1. 시술전

2. 시술과정
 ~/ckeditor/plugins/image/dialogs/image.js 로 이동하여 다음글귀를 변경

--------------------------------------------------------------------------------     type:'button',id:'browse',style:'display:inline-block;margin-top:10px;'    
-> type:'button',id:'browse',style:'display:none;/*inline-block;*/margin-top:10px;'
--------------------------------------------------------------------------------

 

3. 시술후

짜잔~


반응형

+ Recent posts