æè¿ãå¿ããã£ãã®ã§ãããä¹ ãã¶ãã«å°ãæéããã£ãã®ã§ãéååã«æ¸ããæåã¨ã³ã³ã¼ãã£ã³ã°å¤å®ã¹ã¯ãªãããè¦ç´ãã¦ã¿ã¾ãããã¨ãããããåºæ¥ä¸ãã£ããã®ãæ稿ãã¦ããã¾ãã ä½ãé©å½ãªæ¥æ¬èªã®æååãä¸ããã¨ãJIS/eucJP-win/SJIS-win/UTF-8 ãããããªãã«å¦¥å½ãªæåã¨ã³ã³ã¼ãã£ã³ã°ãè¿ãã¾ããçãæååã§ãmb_detect_encoding() ã ãã§ã¯å¤å®ã«å¤±æããå ´åã«å½¹ç«ã¤ããããã¾ãããPHP 5.2.12 ã§ã®åä½ã確èªãã¦ãã¾ãã <?php /** * æ¥æ¬èªæååã®æåã¨ã³ã³ã¼ãã£ã³ã°å¤å®(ASCII/JIS/eucJP-win/SJIS-win/UTF-8) */ function detect_encoding_ja( $str ) { $enc = mb_detect_encoding( $str, 'ASCII,JIS,eucJP-wi
{{#tags}}- {{label}}
{{/tags}}