PHP 㧠UTF-8 ã«ä»ãã¦ãã BOM ãåé¤ããæ¹æ³ 2006-06-05-1: [PHP] UTF-8 ã« BOM (Byte Order Mark) ãä»ãã®ãè¯ãã®ãï¼æªãã®ãã¯åãããªããã©ï¼åé¡ãå¤ãããªæ°ãããï¼ Windows ã«ä»ãã¦ããã¡ã¢å¸³ã¯ãä¸å¯§ã« BOM ãã¤ãã¦ããï¼ - When a BOM is used, is it only in 16-bit Unicode text? http://www.unicode.org/unicode/faq/utf_bom.html#25 ä¸è¨ã®è¨äºã«ããã¨ï¼ãã¡ã¤ã«ã®å é 3 ãã¤ãã« EF BB BF ãããã°ï¼UTF-8 ã«ä»ã BOM ãããã®ã§ï¼ãããå¤å¥ãã¦åé¤ããæ¹æ³ï¼ function delete_bom($str) { if (ord($str{0}) == 0xef && ord($str{1
{{#tags}}- {{label}}
{{/tags}}