14,958
edits
| Line 38: | Line 38: | ||
將包含其他國家語言文字的 Excel 檔案另存成 CSV 檔案時,內容都變成亂碼。 | 將包含其他國家語言文字的 Excel 檔案另存成 CSV 檔案時,內容都變成亂碼。 | ||
'''原因''' | |||
舊版 Excel 另存檔案時只提供一般的 CSV 選項(預設為 Big5 編碼),這是造成亂碼的主要原因。 | |||
'''解決方法''' | '''解決方法''' | ||
| Line 43: | Line 47: | ||
有兩種方法: | 有兩種方法: | ||
* 將 Excel 檔案上傳到 [https://workspace.google.com/intl/zh-TW/products/sheets/ Google Sheets],再下載為 CSV 檔案。Google Sheets 匯出的 CSV 檔案會是 UTF-8 編碼,可避免亂碼問題。 | * 將 Excel 檔案上傳到 [https://workspace.google.com/intl/zh-TW/products/sheets/ Google Sheets],再下載為 CSV 檔案。Google Sheets 匯出的 CSV 檔案會是 UTF-8 編碼,可避免亂碼問題。 | ||
* | * 使用新版 Excel(例如 Office 365),在另存檔案時選擇「CSV UTF-8 (逗號分隔) (.csv)」選項。 | ||
== References == | == References == | ||