2009-01-29 (ÌÚ)
¢£ PHP ¥¹¥¯¥ê¥×¥È¤Ï BOM ÉÕ¤ UTF-8 ¤Ç½ñ¤¤¤Æ¤Ï¤¤¤±¤Ê¤¤
¤³¤³¤Î¤È¤³¤í¡¢¤º¤Ã¤ÈǺ¤ó¤Ç¤¤¤¿¥Ð¥°¤¬¤¢¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ ¤è¤¦¤ä¤¯¸¶°ø¤¬Ê¬¤«¤Ã¤¿¤Î¤Ç¡¢¤½¤ÎÅ¿Ëö¤ò¡£
header() ¤ò»È¤Ã¤Æ¥ì¥¹¥Ý¥ó¥¹¥Ø¥Ã¥À¤ò½ÐÎϤ¹¤ë¥³¡¼¥É¤ò½ñ¤¤¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢ Live HTTP headers ¤Ê¤ó¤«¤ò»È¤Ã¤Æ¸«¤Æ¤ß¤Æ¤â¡¢ ¤Ê¤¼¤«»ØÄꤷ¤¿¥ì¥¹¥Ý¥ó¥¹¥Ø¥Ã¥À¤¬½ÐÎϤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ¤è¤¯¤¢¤ëÏäȤ·¤Æ¡¢header() ¤ÎÁ°¤Ë¤Ê¤Ë¤«¥´¥ß¤ò½ÐÎϤ·¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¤Î¤Ç¤Ï¡© ¤Èµ¿¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ ¥Á¥§¥Ã¥¯¤·¤Æ¤ß¤Æ¤â¤½¤Îµ¤ÇÛ¤Ï̵¤·¡£
¸¶°ø¤¬Ê¬¤«¤é¤º¡¢¤·¤Ð¤é¤¯ÊüÃÖ¤·¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢ ¤Õ¤È¤Ò¤é¤á¤¤¤Æ¡¢¥Ð¥¤¥Ê¥ê¥¨¥Ç¥£¥¿¤ò»È¤Ã¤Æ¥¹¥¯¥ê¥×¥È¤Î¥Õ¥¡¥¤¥ë¤ò¸«¤Æ¤ß¤Þ¤·¤¿¡£ ¤¢¤ì¡© ¤Ê¤Ë¡¢¤³¤ÎÀèÆ¬¤Î EF BB BF ¤Ã¤Æ¡© ¤¤¤Ä¤Î¤Þ¤Ë¤« BOM ¤¬ÉÕ¤¤¤Æ¤¤¤ë¤±¤É¡¢¤â¤·¤«¤·¤Æ¤³¤ì¤¬¤Þ¤º¤¤¤Î¤«¡©
¡Ê¡Ä¹Í¤¨Ãæ¡Ä¡Ë
¤½¤¦¤«¡ª BOM ÉÕ¤ UTF-8 ¤Ç½ñ¤¯¤È¡¢header() ¤¬¸ú¤«¤Ê¤¯¤Ê¤ë¤Î¤«¡ª
¤½¤¦¤Ê¤ó¤Ç¤¹¡£
(<EF> <BB> <BF>) <?php PHP ¤Î¥½¡¼¥¹¥³¡¼¥É ?>
¤ß¤¿¤¤¤Ë¤Ê¤Ã¤Á¤ã¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢ ¤Þ¤ººÇ½é¤Ë EF BB BF ¤Î£³¥Ð¥¤¥È¤ò²èÌ̤˽ÐÎϤ¹¤ë¤³¤È¤Ë¤Ê¤ê¡¢ header() ¤Ï¤Þ¤Ã¤¿¤¯¸ú¤«¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¡£ BOM ¤Ê¤·¤Î UTF-8 ¤ÇÊݸ¤·Ä¾¤·¤Æ¤ß¤¿¤È¤³¤í¡¢¤¢¤Ã¤µ¤êư¤¤Þ¤·¤¿¡£
¾¤Î¸À¸ì¤Ê¤é¡¢¤³¤¦¤¤¤¦ÊѤʸ½¾Ý¤Ïµ¯¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤±¤ì¤É¡¢ PHP ¤Ï HTML Æâ¤ËËä¤á¹þ¤à¥¹¥¯¥ê¥×¥È¸À¸ì¡¢¤È¤¤¤¦Â¦Ì̤¬¤¢¤ë¤Î¤Ç¡¢¤³¤ì¤Ï»ÅÊý¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤Í¡£
- 556 http://q.hatena.ne.jp/1269678207
- 55 http://detail.chiebukuro.yahoo.co.jp/qa/question_d...
- 29 http://d.hatena.ne.jp/tohokuaiki/20090209/utf8_bom...
- 21 http://d.hatena.ne.jp/elf/20090209/1234187707
- 15 http://suika.fam.cx/~wakaba/wiki/sw/n/BOM
- 12 google¸¡º÷(php BOM)
- 12 google¸¡º÷(PHP BOM)
- 10 http://suika.fam.cx/~wakaba/wiki/sw/n/U+FEFF
- 9 google¸¡º÷(php bom)
- 7 google¸¡º÷(php utf-8 bom)
- 7 google¸¡º÷(php bom)
- 7 google¸¡º÷(php bom)
- 6 google¸¡º÷(php BOM)
- 6 http://www.google.co.jp/
- 5 http://www.revulo.com/bbs/wforum.cgi?no=845&reno=8...
- 5 google¸¡º÷(PHP BOM)
- 5 http://d.hatena.ne.jp/tohokuaiki/
- 5 http://d.hatena.ne.jp/elf/
- 4 google¸¡º÷(PHP BOM)
- 4 google¸¡º÷(php utf-8 bom)
- 4 google¸¡º÷(php bom utf-8)
- 4 google¸¡º÷(php bom utf-8)
- 4 google¸¡º÷(php bom)
- 4 google¸¡º÷(PHP BOM)
- 4 google¸¡º÷(BOMÉÕ)
- 4 google¸¡º÷(php utf-8 bom)
- 4 google¸¡º÷(f)
- 3 http://www.google.co.jp/url?sa=t&source=web&cd=4&v...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=php bom u...
- 3 google¸¡º÷(php UTF-8 BOM)
- 3 google¸¡º÷(BOMÉÕ¤)
- 3 google¸¡º÷(utf-8 bom php)
- 3 google¸¡º÷(php utf-8 bom)
- 3 google¸¡º÷(php utf-8 bom)
- 3 google¸¡º÷(php bom)
- 3 google¸¡º÷(bom utf-8 php)
- 3 google¸¡º÷(PHP UTF-8 BOM)
- 3 google¸¡º÷(php bom)
- 3 google¸¡º÷(php bom utf-8)
- 3 google¸¡º÷(utf-8 bom php)
- 3 google¸¡º÷(php bom)
- 3 google¸¡º÷(php BOM)
- 3 google¸¡º÷(UTF8 BOM PHP)
- 3 google¸¡º÷(php utf-8)
- 3 google¸¡º÷(BOM¡¡¥Ð¥°¡¡php)
- 3 google¸¡º÷(BOM php)
- 3 http://www.google.co.jp/hws/search?hl=ja&client=fe...
- 2 http://www.revulo.com/notify-Notify_user_ifilter?a...
- 2 http://www.revulo.com/
- 2 google¸¡º÷(php utf-8 bom)
- 2 google¸¡º÷(BOMÉÕ¤)
- 2 google¸¡º÷(BOM php)
- 2 google¸¡º÷(efbbbf php)
- 2 google¸¡º÷(PHP ¥½¡¼¥¹ UTF-8 BOM)
- 2 google¸¡º÷(£ð£è£ð £Õ£Ô£Æ¡Ý£¸ £Â£Ï£Í)
- 2 google¸¡º÷(PHP BOM)
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=3&v...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=3&v...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=3&s...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php utf-8...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php BOM&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php¡¡bom&...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php heade...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php bom É...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 google¸¡º÷(php header utf-8)
- 2 google¸¡º÷(php bom)
- 2 google¸¡º÷(ef bb bf xml BOM)
- 2 google¸¡º÷(javascript utf-8 bom)
- 2 google¸¡º÷(vim bom utf8)
- 2 google¸¡º÷(f)
- 2 google¸¡º÷(php utf-8 bom)
- 2 google¸¡º÷(BOMÉÕ¤¡¡UTF8)
- 2 google¸¡º÷(BOM¤È¤Ï¡¡¥Ø¥Ã¥À)
- 2 google¸¡º÷(utf b om)
- 2 google¸¡º÷(php utf8)
- 2 google¸¡º÷(php utf-8 £â£ï£í¤Ê¤·)
- 2 google¸¡º÷(php header utf-8)
- 2 google¸¡º÷(php bom utf-8)
- 2 google¸¡º÷(php bom¤È¤Ï)
- 2 google¸¡º÷(php EFBBBF)
- 2 google¸¡º÷(php¡¡BOM)
- 2 google¸¡º÷(javascript £â£ï£íÉÕ½ÐÎÏ)
- 2 google¸¡º÷(html utf-8 bom)
- 2 google¸¡º÷(flex builder UTF-8 BOM)
- 2 google¸¡º÷(UTF-8 BOM php)
- 2 google¸¡º÷(UTF-8 BOM¡¡PHP)
- 2 google¸¡º÷(UTF BOM)
- 2 google¸¡º÷(PHP UTF-8 BOM¤Ê¤·)
- 2 google¸¡º÷(PHP BOM)
- 2 google¸¡º÷(PHP BOM)
- 2 google¸¡º÷(PHP¡¡BOM)
- 2 google¸¡º÷(BOM php)
- 2 google¸¡º÷(BOM PHP)
- 2 google¸¡º÷(BOM PHP)
- 2 google¸¡º÷(BOM ¤Ê¤·¤Î UTF8)
- 2 google¸¡º÷(BOMÉÕ¤)
