Contents

Views 7246 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

이렇게 인코딩 해야 됨 ㅋㅋ

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


?

  1. [c] 싱글, 더블 링크리스트(linked list)로 만든 예제..

  2. [c] 프로그래밍 과제..(colprint)

  3. [c] 시간 계산 하는 프로그램 소스코드

  4. [pdf] C 국제 표준 문서

  5. [js] 한글문서로 된 259가지 자바스크립트 예제파일

  6. [js] 실행되는 디렉토리 확인하는 스크립트..

  7. [c] 문자열 컨트롤 함수로 만든 프로그램들..

  8. [js] ajax를 이용해 외부문서 불러오기..

  9. [php] 피코맥스용 검색엔진 ㅋㅋ

  10. [c] 파일 복사(copy) 프로그램 샘플 소스

  11. [js] One Time Pad key generatorㅡ.,ㅡ;

  12. [c] 학교 건물 최단거리 찾는 웹 연동 프로그램

Board Pagination Prev 1 ... 16 17 18 19 20 21 22 23 24 25 ... 71 Next
/ 71