Contents

조회 수 7237 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

이렇게 인코딩 해야 됨 ㅋㅋ

<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>


?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
205 Develop [c] scanf(), printf() 포맷의 형변환 hooni 2003.04.23 10875
204 Develop [c] RSA 암호화 구현(gmp 라이브러리 활용) file hooni 2016.10.03 1000
203 Develop [c] pcap을 이용한 패킷 분석 ㅎㅎ hooni 2003.04.23 10235
202 Develop [c] pcapdump 파일 분석 하는 프로그램.. ㅋㅋ file hooni 2013.04.23 6909
201 Develop [c] openssl 샘플코드.. 어려움 ㅠㅠ file hooni 2013.04.23 7033
200 Develop [c] OpenGL 직사각형(2D) 크기 확대/축소 hooni 2003.04.23 9084
199 Develop [c] OpenGL 임시로 여기 올림.. hooni 2003.04.23 10337
198 Develop [c] OpenGL 시어핀스키 가스킷(p.73 - 첫시간) hooni 2003.04.23 8770
197 Develop [c] OpenGL 색 입방체의 회전(입체) hooni 2003.04.23 7890
196 Develop [c] OpenGL 마우스 이벤트 hooni 2003.04.23 8750
195 Develop [c] OpenGL 관측점 이동 hooni 2003.04.23 7634
194 Develop [c] Mac OS 에 gmp(gmp.h) 라이브러리 설치 hooni 2016.10.03 1427
Board Pagination Prev 1 ... 49 50 51 52 53 54 55 56 57 58 ... 71 Next
/ 71