|
...
|
...
|
@@ -183,7 +183,7 @@ class ProjectImport extends Command |
|
|
|
protected function get_code_type($file)
|
|
|
|
{
|
|
|
|
$list = array('GBK', 'UTF-8');
|
|
|
|
$str = file_get_contents($file);
|
|
|
|
$str = curl_c($file,false);
|
|
|
|
foreach ($list as $item) {
|
|
|
|
$tmp = mb_convert_encoding($str, $item, $item);
|
|
|
|
if (md5($tmp) == md5($str)) {
|
...
|
...
|
|