ããã¾ã§ã«æããæåã³ã¼ãã«ã¤ãã¦ãæ£è¦è¡¨ç¾ã使ç¨ã㦠mb_check_encoding() ã®ä»£æ¿ç¨ã®é¢æ°ãæ¸ãã¦ã¿ã¾ãããããç¨åº¦ã妥å½ãªãã®ã«ãªã£ã¦ããã¨ã¯æãã¾ãããééãçã«æ°ä»ããæ¹ããããã¾ãããããææãã ããã UTF-8 ã«ã¤ãã¦ã¯ãRFC3629 ãåèã«ãã¾ãããåæåã¯4ãã¤ã以ä¸ãåé·ãªè¡¨ç¾ããµãã²ã¼ããã¢ã®é åã FALSE ã¨å¤å®ãã¾ãã <?php function is_valid_encoding( $str, $encoding ) { switch ( $encoding ) { case 'ASCII' : $regex = '/(?:' . '[\x00-\x7f]' // ASCII (mb_check_encoding) // . '[\x00\x09\x0a\x0d\x20-\x7f]' // ASCII (mb_detect_enco
{{#tags}}- {{label}}
{{/tags}}