Develop
2013.04.23 16:24
[js] 인터넷 주소(URL) 인코딩 ㅋㅋ
조회 수 11388 댓글 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] 파일입출력, 링크리스트(linked list)를 이용한 주소록(도스용) 소스코드
-
[c] 최대공약수, 최소공배수, 서로소 구하기 (펌)
-
[linux] 시스템 데몬 종류와 설명
-
[NFC] 단말기와 서버 통신 내용
-
[doc] TCP/IP 강의 자료 (html)
-
[c] 파일입출력 간단한 설명
-
[unix] 유닉스 명령에 메타문자 사용
-
[switch] 시스코 스위치(catalyst 2950) telnet 설정
-
[ios] iOS In App Purchase 코드 부분 샘플 2
-
[js] 한글주소(URL) 인코딩(encode, Encoding), 자바스크립트(JavaScript)
-
[c++] mfc에서 윈도우 항상 위 속성 주기..
-
[js] 인터넷 주소(URL) 인코딩 ㅋㅋ