$utf8Str = "â¶â·â¸â¹âº"; $sjisStr = mb_convert_encoding($utf8Str, 'SJIS-mac'); echo(mb_detect_encoding($sjisStr, ['UTF-8','SJIS-mac', 'SJIS-win', 'SJIS'])); // SJIS-win â SJIS-macã«å¤æããã¯ããªã®ã«ãä½æ ãSJIS-winã¨å¤å®ããã¦ãã¾ãã¾ãã ããããSJIS-macã£ã¦ãªãã ãã£ã¦è©±ã§ãããåã«MacJapaneseã®ã¨ã¤ãªã¢ã¹ã§ãã å¾ã£ã¦MacJapaneseã¨æ¸ãã¦ãåãããæ£ãã誤å¤å®ããã¾ãã ããã¦ã³ã¡ã³ãæ¬ã«This is a bug in PHP's mbstring extensionãmbstringã¨ã¯ã¹ãã³ã·ã§ã³ã®ãã°ããããã¨ãã人ãç¾ãã¦ãã¾ãã ééã£ãã³ã¼ããæ¸ããã¨ãã«èªåã®ããã§ã¯
{{#tags}}- {{label}}
{{/tags}}