Develop
2013.04.23 16:24
[js] 인터넷 주소(URL) 인코딩 ㅋㅋ
조회 수 11357 댓글 0
URL 인코딩~
<html> <body> <script type="text/javascript"> var s; s = encodeURI('http://google.com/소 설.html'); document.write('<p>' + s + '<p>'); //결과 http://google.com/%EC%86%8C%20%EC%84%A4.html s = encodeURIComponent('http://google.com/소 설.html'); document.write('<p>' + s + '<p>'); //결과 http%3A%2F%2Fgoogle.com%2F%EC%86%8C%20%EC%84%A4.html s = escape('http://google.com/소 설.html'); document.write('<p>' + s + '<p>'); //결과 http%3A//google.com/%uC18C%20%uC124.html </script> </body> </html>
-
[c] 구구단 최단라인 ㅡㅡ;
-
[c] Unix Domain Socket 을 이용한 IPC
-
[c] 포인터와 함수포인터에 대해..
-
[c] 프로세스 검사하기
-
[js] 셀렉트박스(select)의 옵션(option) 동적으로 추가/제거
-
[c] 유닉스 프로그램에서 인수처리 해주는 getopt() 함수
-
[c] 레포트용으로 제출했던 여러 소스코드 모음
-
[c] 반올림 함수!! ㅋㅋ
-
[jsp][php] 간단한 강좌 자료..
-
[c] 컴파일러 DFA구현^^ 입력 받아 실행
-
[c] 숫자(int, Number)를 hex코드로 변환하는 소스
-
[c] 오류체크(CRC 체크 ) 소스