-
https://www.php.net/manual/en/function.mb-detect-encoding.php
PHP: mb_detect_encoding - Manual
if the function " mb_detect_encoding" does not exist ... ... try: example / usage of: mb_detect_encoding() $txtstr = str_to_utf8($txtstr);
www.php.net
파일 인코딩 확인 후 변경