Update app.py
Browse files
app.py
CHANGED
@@ -58,10 +58,10 @@ def merge_csv_files(files):
|
|
58 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.csv') as tmp:
|
59 |
output_path = tmp.name
|
60 |
|
61 |
-
# ๋ณํฉ๋
|
62 |
-
merged_df.to_csv(output_path, index=False, encoding='utf-8')
|
63 |
|
64 |
-
return output_path, f"{len(files)}๊ฐ ํ์ผ์ด ์ฑ๊ณต์ ์ผ๋ก ๋ณํฉ๋์์ต๋๋ค."
|
65 |
else:
|
66 |
return None, "๋ณํฉํ ๋ฐ์ดํฐ๊ฐ ์์ต๋๋ค."
|
67 |
|
|
|
58 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.csv') as tmp:
|
59 |
output_path = tmp.name
|
60 |
|
61 |
+
# ๋ณํฉ๋ ๋ฐ์ดํฐ๋ฅผ Excel ํธํ ํ์(UTF-8 with BOM)์ผ๋ก ์ ์ฅ
|
62 |
+
merged_df.to_csv(output_path, index=False, encoding='utf-8-sig')
|
63 |
|
64 |
+
return output_path, f"{len(files)}๊ฐ ํ์ผ์ด ์ฑ๊ณต์ ์ผ๋ก ๋ณํฉ๋์์ต๋๋ค. Excel์์ ์ด ๋ UTF-8 ์ธ์ฝ๋ฉ์ผ๋ก ์ด์ด์ฃผ์ธ์."
|
65 |
else:
|
66 |
return None, "๋ณํฉํ ๋ฐ์ดํฐ๊ฐ ์์ต๋๋ค."
|
67 |
|