Views 7214 Votes 0 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. [ios] Hybrid 앱 스터디 발표 자료

  2. 영어. 외우면 도움되는 필수영어회화 표현

  3. [ios] 간단한 방법으로 OS버전 확인하기.

  4. [mac] SVN 1.8 업데이트 방법

  5. [svn] 콘솔에서 svn 사용시 레티나용 이미지 add 안될 때..

  6. [ios] UIView에서 상위 UIViewController 가져오기

  7. [ios] GCD 변수 사용 예제

  8. [linux] 우분투 APM + phpmyadmin 설치

  9. [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로)

  10. [mac] 맥에서 슬립(잠자기) 모드 진입을 막는 방법~

  11. [ios] UIAlertView 초간단 샘플 ㅎㅎ

  12. [linux] 특정 문자열 포함된 파일 찾는 명령어

  13. [ios] Random Thoughts: Rand() vs. arc4random()

  14. [ios] 배열(NSArray) 연산과 간단한 애니메이션(split images)

  15. [php] XE 에서 php 구문 사용하기 (XE 템플릿에서)

  16. 티스토리 테이블 html,css 구문

Board Pagination Prev 1 ... 48 49 50 51 52 ... 74 Next
/ 74