|
@@ -73,5 +73,5 @@ def convert_encoding_in_dir(directory, dest_encoding, extensions):
|
|
|
# 示例调用
|
|
|
directory = "./全书" # 替换为你的目标文件夹路径
|
|
|
dest_encoding = "utf-8"
|
|
|
-extensions = ['.txt', '.html', '.htm', '.js'] # 需要处理的文件扩展名
|
|
|
+extensions = ['.txt', '.html', '.htm', '.js', '.css'] # 需要处理的文件扩展名
|
|
|
convert_encoding_in_dir(directory, dest_encoding, extensions)
|