ExportÄnderungen
Grafische Oberfläche Änderungen Keine txt. Dateien mehr sondern nur noch JSON Dateien
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Einmal-Konverter: storage.py aus cp1252/latin1 nach UTF-8 speichern
|
||||
src = "storage.py"
|
||||
raw = open(src, "rb").read()
|
||||
for enc in ("utf-8", "utf-8-sig", "cp1252", "latin-1"):
|
||||
try:
|
||||
text = raw.decode(enc)
|
||||
break
|
||||
except UnicodeDecodeError:
|
||||
continue
|
||||
open(src, "w", encoding="utf-8", newline="\n").write(text)
|
||||
print("storage.py nach UTF-8 konvertiert.")
|
||||
Reference in New Issue
Block a user