Develop
2013.04.23 16:11
[js] 네이버에서 그림 퍼올 때.. URL Encoding 관련ㅋㅋ
조회 수 7225 댓글 0
이렇게 인코딩 해야 됨 ㅋㅋ
<html> <head> <script type="text/javascript"> function encode(){ s = document.f.str.value; r = encodeURIComponent(s); document.f.res.value = r; } function decode(){ s = document.f.str.value; r = decodeURIComponent(s); document.f.res.value = r; } /* var s; s = encodeURI('http://www.google.co.kr/소 설.html'); document.write('<p>' + s + '<p>'); // 출력 결과: http://www.google.co.kr/%EC%86%8C%20%EC%84%A4.html s = encodeURIComponent('http://www.google.co.kr/소 설.html'); document.write('<p>' + s + '<p>'); // 출력 결과: http%3A%2F%2Fwww.google.co.kr%2F%EC%86%8C%20%EC%84%A4.html s = escape('http://www.google.co.kr/소 설.html'); document.write('<p>' + s + '<p>'); // 출력 결과: http%3A//www.google.co.kr/%uC18C%20%uC124.html */ </script> </head> <body> <form name=f> <textarea name=str cols=70 rows=7></textarea> <br> <input type=button onClick=encode() value=Encode> <input type=button onClick=decode() value=Decode> <br> <textarea name=res cols=70 rows=7></textarea> </form> </body> </html>
-
[c] 플러드 필링 (flood filling) 알고리즘..
-
[c] 베지어 곡선(Bézier curve) 알고리즘
-
[doc] Equation Solving에 대한 발표자료..
-
[java] 그래픽(도형,다각형..) 이동,확대,축소,회전에 대한 내용..
-
[c][java] 그래픽(graphic)관련 자료와 샘플코드..
-
[php] 피코맥스용 검색엔진 ㅋㅋ
-
[js] 자바스크립트 escape()를 PHP로 받기
-
나중에 해봐야지.. libconv 설치.. ㅡ,.ㅡ;
-
[js] 한글문서로 된 259가지 자바스크립트 예제파일
-
[c] 코드 최적화에 대해..
-
[c] 로또(Lotto) 번호 생성기
-
[c] 그래픽 차트 라이브러리.. 나중에 확인 해볼 거..