URL 인코딩에 관해 질문이 있습니다..

mokyj의 이미지

파이어폭스(윈도우용) 주소창에 "kldp.org/?한글"을 쓰고 엔터를 치면 "http://kldp.org/?%C7%D1%B1%DB"와 같이 변환되는데 익스플로러6.0에서는 똑같이 쳐도 "kldp.org/?한글"가 그대로 남습니다.

그러나 익스플로러에서도 네이버 등에서 검색창에 한글을 치면 http://search.naver.com/search.naver?where=nexearch&query=%C7%D1%B1%DB&frm=t1&sm=top_hty와 같이 URL이 나옵니다.

이제 질문입니다.

1) "한글"을 "%C7%D1%B1%DB"와 같이 변환하는 작업은 브라우저가 하나요, 아니면 웹서버가 하나요? 파이어폭스와 익스플로러의 반응이 다르니 잘 모르겠네요..

2) "한글"을 "%C7%D1%B1%DB로 변환해야 한다는 것이 어디에 정해져 있습니까? 브라우저 혹은 웹서버에서 설정을 하면 다르게 변환될 수도 있는지요?

또, URL 인코딩에 관해 참고할 만한 자료를 알려주시면 감사하겠습니다.

송효진의 이미지

form 을 통해 get 으로 보낸다면 브라우저가 합니다.

explorer 에서'만' 주소창에 직접 적은 한글을 인코딩 하지 않습니다.

emerge money

bushi의 이미지

IE 나 FF 모두 설정에서 바꿀 수 있습니다.
FF 는 about:config 인가하는 확장자 설치하시면 좀 더 편하게 이것저것 주물럭 거려 볼 수 있습니다.

mokyj의 이미지

두 분 답변 감사드립니다..

두 분 말씀을 종합하면,
"브라우저랑 서버에서 모두 인코딩할 수 있는데, get 방식으로 보낼 때는 브라우저가 인코딩한다(익스 제외). 또한 IE나 FF에서 그 방식을 바꿀 수 있다." 가 되겠네요..

아직 궁금한 게 남았는데요,
"한글"을 "%C7%D1%B1%DB"로 변환하는 방식을 뭐라고 부르는지, 그리고 그 규약 혹은 표준 같은 게 어디에 있는지 알고 싶습니다..

익명사용자의 이미지

urlencode + utf8 + rfc 라고 구글링 해보시면 여러 관련 rfc 문서가 나옵니다.

송효진의 이미지

RFC1738

익스제외는 get 이라고 하기 보다는 주소창에 직접 입력 이라고 하는게 맞습니다.

emerge money

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.