Troubleshooting of common Excel errors in Mandarin: Difference between revisions

Jump to navigation Jump to search
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:


原因:
原因:
* 如果 CSV 檔案內的欄位值包含換行符號 (Return symbol),Excel 開啟時會出現錯誤:原本應該同一欄位,卻換行變成第二筆資料。
* 如果 CSV 檔案內的欄位值包含換行符號 (Return symbol),Excel 開啟時會出現錯誤:原本應該同一欄位,卻變成下一筆資料。


解決方法:
解決方法:
Line 47: Line 47:
有 3 種方法:
有 3 種方法:
* 將 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 編碼,可避免亂碼問題。
* 使用 [https://zh-tw.libreoffice.org/ LibreOffice] 開啟 Excel 檔案,在另存檔案時選擇「Text CSV (.csv)」格式,在選擇「Character set: Unicode (UTF-8)」選項。
* 使用開源軟體<ref>[https://zh.wikipedia.org/zh-tw/%E5%BC%80%E6%BA%90%E8%BD%AF%E4%BB%B6 開源軟體 - 維基百科,自由的百科全書]</ref> [https://zh-tw.libreoffice.org/ LibreOffice] 開啟 Excel 檔案,在另存檔案時選擇「Text CSV (.csv)」格式,在選擇「Character set: Unicode (UTF-8)」選項。
* 使用新版 Excel(例如 Office 365),在另存檔案時選擇「CSV UTF-8 (逗號分隔) (.csv)」選項。
* 使用新版 Excel(例如 Office 365),在另存檔案時選擇「CSV UTF-8 (逗號分隔) (.csv)」選項。


Navigation menu