ref:Open ããã°: â ã·ããJIS 㨠unicode via:Matzã«ã£ã(2007-03-12) åãã«ãæããã¦ããããæ¬é ã¯ã誰ããæ¹å¤ãããã¨ãç®çã§ã¯ãªããç´ äººã«ãããã¡ãªèª¤è§£ãæ£ããã¨ã«ããã ä¸è¨ã®ãµã¤ãã§ãç´ äººãééããç¯ãã¦ããããã¨ãã£ã¦ãç´ äººãæ¹å¤ããã¤ããã¯æ¯é ãªããç´ äººãå°éç¥èããããªãã®ã¯å½ç¶ã ããã ãç§ã¨ãã¦ã¯ãæ¹å¤ããããã¨ããããã¯ãèªè ãä»å±±ã®ç³ã¨ãã¦çºããããã«ãä¸è¨ã®ãµã¤ããè¦ããã¨ããå§ãããã Encode.pm ã® maintainer ã§ãã dankogai æ°ãç´ äººå¼ã°ããããã®ããªããªãåæ°ãããã¨æããããããããããæ¬äººã®èª¤è§£ãæ£ãã¦ããããã ä¸æ¹ã unicode ã«ã¯åé¡ãå±±ç©ã¿ã ãã ããããç´ äººã¯ unicode ã¨ããè¨èã使ã£ã¦ãããã unicode ã¨ãããã®ã¯ä¸ç¨®é¡ãããªãããã§ã¯ãªããUTF-8ï¼
RedHatã®æè¡è ã§ãããDebianéçºè ã§ãããtagohæ°ã®blogã«ã UTF-8ã¯ååãã©ãããã¨ããæ¸ãè¾¼ã¿ãããã ããã¯ãã ã·ããJISãæ¨ã¦ãããã?ãã¨ããITproã®è¨äºã«å¯¾ãã¦ãRubyéçºè ã®Matzæ°ã ããçãã«è¶ãããã¨ã¯ãªããã¨ããããå¼±ãçç±ã§ãããã«å¥ã®ã¨ã³ã³ã¼ãã£ã³ã°ã®å¿ è¦æ§ãã»ã®ããããªãã§ããã ãããã ã¨ãèªèº«ã®æ¥è¨ã§è¿°ã¹ã¦ãããã¨ã«å¯¾ãã¦ã tagohæ°ãæè¦ãè¿°ã¹ã¦ãããã®ã ã tagohæ°ã«ããã°ãã¨ã³ã³ã¼ãã£ã³ã°ãå¢ãããªããã¨ã¯è³åã§ãããããUTF8ã§ããã®ããã¨ããã¨ããã«ã¯ç¹ã«ä»è¨èªãèæ ®ããå ´åã«ããã¦çåãåãã ãã¨ã³ã³ã¼ãã£ã³ã°ã«è¨èªã¿ã°ã§ãå ¥ããæ¹ããããã§ã¯ãªãã ããããã¨æè¦ãè¿°ã¹ã¦ããã localeä½µç¨ã¨ããã®ã¯ä»ã®æ¹å¼ã ããããã§ã¯è¤æ°è¨èªã使ããªãããã§ãtagohæ°ã®è¨èªã¿ã°ã¨ãããã¨ã«ã¯è³åã§ããã
yamaokaã§ãã PHPã§æ¥æ¬èªãæ±ãå ´åãmbstringã¢ã¸ã¥ã¼ã«ãå©ç¨ããå ´åãå¤ãã¨æãã¾ãã æ¥æ¬èªã«ç¹æã®æ©è½ï¼ã«ã¿ã«ãã®å ¨è§/åè§å¤æãªã©ï¼ãåãã£ã¦ãã¦ãã¨ã¦ã便å©ã§ãã ããããæ¥æ¬ä»¥å¤ã§ã¯mbstringã¢ã¸ã¥ã¼ã«ã¯ãã¾ãå©ç¨ããã¦ããªãããã§ãã 代ããã«å©ç¨ããã¦ããã®ãiconvã¢ã¸ã¥ã¼ã«ã§ã æè¿è©±é¡ã®ãã¬ã¼ã ã¯ã¼ã¯ãsymfonyã§ã å½éåã®æ©è½ãå®ç¾ããããã«å é¨ã§å©ç¨ããã¦ãã¾ãã iconvã¢ã¸ã¥ã¼ã«ã¯PHP 5ã§PHPã®æ¬ä½ã«çµã¿è¾¼ã¾ãã¾ããã å¥éç¨æãã¦çµã¿è¾¼ãå¿ è¦ãããmbstringã¢ã¸ã¥ã¼ã«ã¨éã£ã¦ãæåãã使ç¨ã§ããã®ã§ä¾¿å©ã§ããã PHPã®ããã¥ã¢ã«ã®iconvé¢æ°ã®ãã¼ã¸ãè¦ãã¨ã ããã¤ãã®é¢æ°ãå®ç¾©ããã¦ããã®ããããã¾ãã ãããããmbstringé¢æ°ã¨ã® 対å¿è¡¨ãä½ã£ã¦ã¿ã¾ããã iconvé¢æ°mbstringé¢æ°
åºæ¬çã«ãã¾ã¨ããªå½éåã©ã¤ãã©ãªã使ã£ã¦ããã°ãä¸è¨ã®ãããªä¸æ£ãªæåã³ã¼ãã¯ãã¡ãã¨å¦çãã¦ãããã¯ãã§ããå®éã Opera, Firefox, IE ã¨ãã«é©åã«ã¨ã¹ã±ã¼ããã¦ããã¾ãããã¾ãã UCS ã«å¤æããå¾ã«ã¨ã¹ã±ã¼ãå¦çãè¡ããã¨ã§ã対å¦ã§ããããããã¾ãããããããè¤æ°ã®ã¢ã¸ã¥ã¼ã«ã§æ§æããããããªè¦æ¨¡ã®å¤§ããã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããã®ãã¹ã¦ãé©åãªå¦çãè¡ã£ã¦ããã¨ä¿è¨¼ããã®ãããªããªãé£ãããã¨æãã¾ããããã¯ãã¯ãããã¹ã¦ã®å¤é¨å ¥åã«å«ã¾ããä¸æ£ãªã·ã¼ã±ã³ã¹ããæ°´éã§æ£è¦åããã¨ããå¦çãå¾¹åºããã®ãä¸çªãã¨æãã¾ãã ä¾ãã° Ruby ã®å ´åãä¸æ£ãª UTF-8 ã³ã¼ããæ¤åºããæãç°¡åãªæ¹æ³ã¯ã String#unpack ã使ã£ã¦ UCS ã¸å¤æãã¦ã¿ããã¨ã§ãï¼æ¨æ¥ã®è¨äºã¸ã® kazutanaka ããããã®ã¯ã¦ã¶ã³ã¡ã³ãã«ã¦ã iconv ã§ãåæ§ãªã
UTF-7 ã使ã£ã¦ã¹ã¯ãªãããè¨è¿° +ADw-SCRIPT+AD4-alert(\'XSS\');+ADw-+AC8-SCRIPT+AD4- IE ã¯ãæåã¨ã³ã³ã¼ãã£ã³ã°ãä¸æ㧠UTF-7 ã£ã½ãæååãããã°ãèªåå¤å¥ã§ UTF-7 ã¨ãªãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}