Spaces:
Sleeping
Sleeping
Update core/file_scanner.py
Browse files- core/file_scanner.py +1 -1
core/file_scanner.py
CHANGED
@@ -68,7 +68,7 @@ class FileScanner:
|
|
68 |
with file_path.open('r', encoding=encoding) as f:
|
69 |
return f.read(), encoding
|
70 |
except UnicodeDecodeError:
|
71 |
-
# cp932 を再試行
|
72 |
with file_path.open('r', encoding='cp932') as f:
|
73 |
return f.read(), 'cp932'
|
74 |
except Exception:
|
|
|
68 |
with file_path.open('r', encoding=encoding) as f:
|
69 |
return f.read(), encoding
|
70 |
except UnicodeDecodeError:
|
71 |
+
# cp932 を再試行 (Windows向け)
|
72 |
with file_path.open('r', encoding='cp932') as f:
|
73 |
return f.read(), 'cp932'
|
74 |
except Exception:
|