URI :: Escape :: Xs.

URI :: Escape :: XS´Â URI :: Escape¿¡ ´ëÇÑ µå·Ó ÀÎ ±³Ã¼ÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

URI :: Escape :: Xs. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Dan Kogai
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~oyama/Crypt-Camellia-2.01/lib/Crypt/Camellia.pm

URI :: Escape :: Xs. ű×


URI :: Escape :: Xs. ¼³¸í

URI :: Escape :: XS´Â URI :: Escape¿¡ ´ëÇÑ µå·Ó ÀÎ ¹ÙÅ© ÀÎ ±³Ã¼ÀÔ´Ï´Ù. URI :: Escape :: XS´Â URI :: Escape.synopsis¿¡ ´ëÇÑ µå·Ó ÀÎ ±³Ã¼ÀÔ´Ï´Ù. URI :: Escape »ç¿ë URI :: Escape :: xs qw / uri_escape uri_unescape /;; $ safe = uri_escape ( "10 %´Â ÃæºÐÇÕ´Ï´Ù"); $ verysafe = uri_escape ( "foo", "-377); $ str = uri_unescape ($ safe); # ¶Ç´Â encodeuricomponent ¹× decodeuricomponent URI :: Escape :: xs; $ safe = encodeuromponent ("10 % ÃæºÐÇÑ " ); $ STR = µðÄÚµù ÄíÄÚ ´ÏÆ® ( "10 %´Â ÃæºÐÇÏ´Ù"); javaScriptÀÇ encodeuromponent´Â $ URI = ÀÎÄÚµù urosponent ( "http://www.example.com/"); # http://www.example.com / Å»Ãâ ÇÒ ¹®ÀÚ¸¦ »ç¿ëÀÚ Á¤ÀÇ ÇÒ ¼ö ¾ø½À´Ï´Ù. ±×·¸°Ô ÇؾßÇÏ´Â °æ¿ì "uri_escape".DecodeUroComponentDoesÀÇ JavaScriptÀÇ decodeuromplonent. $ str = decodeuricomponent ( "http://www.example.com/k/"); # http : / / www.example.com/it % HH ¼­¿­»Ó¸¸ ¾Æ´Ï¶ó ´ë¸® ½ÖÀÌ ¿Ã¹Ù¸£°Ô µðÄÚµù µÈ % HH ½ÃÄö½º»Ó¸¸ ¾Æ´Ï¶ó % UHHHH ½ÃÄö½ºµµ ¿Ã¹Ù¸£°Ô µðÄÚµùµË´Ï´Ù. $ str = µðÄÚµù ½´Æ÷¸¥ ( "% UD869 % UDEB2 % U5F3E % U0061"); # x {2A6B2} x { 5F3E} Athis ÇÔ¼ö´Â UTF8 Ç÷¡±×·Î µðÄÚµù µÈ ¹®ÀÚ¿­À» ¹«Á¶°Ç ¹ÝȯÇÕ´Ï´Ù. UTF8 µðÄÚµù µÈ ¹®ÀÚ¿­À» °¡Á® ¿À·Á¸é ÀÎÄÚµù ¹× DECODE_UTF8 (DecodeUricomponent ($ URI))À» »ç¿ëÇϽʽÿÀ. ÀÌ°ÍÀÌ ¿Ã¹Ù¸¥ µ¿ÀÛÀÔ´Ï´Ù. µðÄÚµù µÈ ¹®ÀÚ¿­Àº ½ÇÁ¦·Î iso-8859-1 ¹× shift_jis.uri_escapedoes¿Í °°Àº URI :: Escape :: uri_escape ()¿Í ¶È°°Àº URI :: Escape ()¿Í ¶È°°Àº URI :: Escape :: uri_escape¸¦ Æ÷ÇÔÇÕ´Ï´Ù. () Croak ¹× URI_ESCAPE_UTF8 ()À» Ã˱¸ÇÏÁö¸¸ URI ÀÚü´Â URF8 Ç÷¡±×¿Í °°Àº °ÍµéÀÌ ¾ø±â ¶§¹®¿¡ ¹«ÀǹÌÇÕ´Ï´Ù. ÀÌ ¸ðµâÀÇ ÇÔ¼ö´Â Ç×»ó ¹®ÀÚ¿­À» ¹ÙÀÌÆ® ½ÃÄö½º·Î Ãë±ÞÇÕ´Ï´Ù. ±×·± ½ÄÀ¸·Î utf8 flags.note¿¡ ´ëÇØ °ÆÁ¤ÇÏÁö ¾Ê°íµµÀÌ ±â´ÉÀ» ¾ÈÀüÇÏ°Ô »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.ÀÌ ±â´ÉÀº ±âº»ÀûÀ¸·Î ³»º¸³»ÁöÁö ¾Ê½À´Ï´Ù. ÀÌ·¸°ÔÇϸé URI :: Escape ¹× URI :: Escape :: xs simultisly.uri_unescapedoes uri :: escape :: uri_escape ()¸¦ Á¦¿ÜÇÏ°í´Â uri_escape :: uri_unescape () ´Ü¼øÈ÷ % UHHHH ½ÃÄö½º ¹«½ÃÀÌ ¸ðµâÀÇ ÇÔ¼ö°¡ ÇØ´ç UTF-8 ¹ÙÀÌÆ® ½ÃÄö½º·Î µðÄÚµùÇÏ´Â µ¿¾ÈÀÌ funcitonÀº ±âº»ÀûÀ¸·Î ³»º¸³¾ ¼ö ¾ø½À´Ï´Ù. % uhhhh sequenceWithÀÌ ¸ðµâ¿¡¼­ÀÇ À̸§À» ÁöÁ¤ÇÏÁö ¾Ê½À´Ï´Ù. °á°ú ¹®ÀÚ¿­Àº UTF8 Ç÷¡±×¿¡ Àý´ë·Î ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù. ...¿¡ µû¶ó¼­ Perl UTF8·Î µðÄÚµùÇÏ·Á¸é ÀÎÄÚµùÀ» ÅëÇØ ¸í½Ã ÀûÀ¸·Î µðÄÚµùÇؾßÇÕ´Ï´Ù. ±â¾ïÇÏ´Ù. URI´Â Ç×»ó UTF-8 ¹®ÀÚ°¡ ¾Æ´Ñ ¹ÙÀÌÆ® ½ÃÄö½º°¡µÇ¾ú½À´Ï´Ù. % UHHHH ½ÃÄö½º°¡ Ç¥ÁØÀÌ µÈ °æ¿ì, ÁÖ¾îÁø URI°¡ À¯´Ï ÄÚµåÀÎÁö ¾ÈÀüÇÏ°Ô ¸»Çß½À´Ï´Ù. ±×·¯³ª ºÒÇàÈ÷µµ, RFC Á¦¾È¼­´Â uri.http : //en.wikipedia.org/wiki/percent-encoding#non-tandard_implementationsi¸¦ º¸¸é¼­ ¾î¶² ÀÎÄÚµùÀ» »ç¿ëÇÏ´ÂÁö ¾Ë ¼ö ¾øÀ¸¹Ç·Î RFC Á¦¾È¼­´Â °ÅºÎµÇ¾ú½À´Ï´Ù. UHHHH´Â ºñ BMP ¹®ÀÚ¿¡ ´ëÇØ ºÒÄè ÇÒ ¼ö ÀÖ½À´Ï´Ù. °¢ % UHHHH´Â ÇϳªÀÇ 16 ºñÆ® °ªÀ» À¯ÁöÇÒ ¼ö ÀÖÀ¸¹Ç·Î UHHHH°¡ Å»ÃâÇÏ´Â % UHHHH°¡ÀÖ´Â »ó´çÇÑ ¼öÀÇ URI°¡ÀÖ´Â °æ¿ì »ó´ç¼öÀÇ URI°¡ ÀÖ½À´Ï´Ù. µû¶ó¼­ÀÌ ¸ðµâÀº µðÄÚµù ¸¸ Áö¿øÇÕ´Ï´Ù. ´Ù½Ã Å¥·ºÆ® : ¡¤ Perl ¿ä±¸ »çÇ× : ¡¤ Perl.


URI :: Escape :: Xs. °ü·Ã ¼ÒÇÁÆ®¿þ¾î