→ dobedobedo: 看了幾篇文章都說試試直接轉換檔案編碼 01/12 11:46
→ EdwardGJLee: 用 big5-2003 的話呢? 01/13 21:59
推 twjasonpc: 在Windows安裝Notepad++ , 打開txt , 看右下角的編碼. 01/14 03:18
→ twjasonpc: 通常問題有3種 1.換行字元 2.BOM 3.編碼(例如:UTF-16) 01/14 03:19
推 Bellkna: 用vim開檔 se fenc看編碼 01/14 06:38
→ purpleblood: 現在手邊沒有Windows機器... 01/15 12:52
→ purpleblood: 是說iconv -f big5-2003 -t utf8 < file.txt這樣嗎? 01/15 12:53
→ purpleblood: 得到iconv: conversion from `big5-2003' is not sup 01/15 12:53
→ purpleblood: not supported 01/15 12:54
→ purpleblood: dobedobedo大對不起看了連結還是不大知道怎麼操作.. 01/15 12:56
→ dobedobedo: iconv -f <encoding> -t utf-8 -o ut8_output input 01/15 14:11
→ dobedobedo: <encoding>替換成檔案編碼 01/15 14:11
推 xhining: 來源檔刪掉頭幾列試試,有的就剛好沒辦法轉。終極密碼 01/15 15:13
→ EdwardGJLee: iconv --list 可以列出支援什麼編碼。看有沒有 cp950 01/15 16:33
→ EdwardGJLee: big5-3003 沒有的話,就用 cp950。先磁定你那個檔是 01/15 16:33
→ EdwardGJLee: 不是真的是 big5 編碼。 01/15 16:33
→ EdwardGJLee: s/磁定/確定/ 01/15 16:34
→ EdwardGJLee: 最後沒辦法的話,用 iconv -c,強制轉。 01/15 16:36
→ EdwardGJLee: s/big5-3003/big5-2003/ 01/15 16:38
推 stanwu: sublime text 3 設定big5 ? 01/20 22:27
→ EdwardGJLee: 如果常需要這方面的功能,請安裝enca 01/21 13:12
推 jokester: maybe look for a more tolerant converter 01/28 16:18
→ jokester: idk if nkf supports big-5. worthy a try IMO. 01/28 16:18
→ firejox: 中文檔案是繁中還是簡中啊 02/01 10:32
→ purpleblood: 繁中 02/01 15:29
→ firejox: od -t x1 file.txt 的第一行長怎樣 02/03 18:38
→ purpleblood: 0000000 0d 0a 0d 0a 4c 65 73 20 50 61 75 6c 20 6f 02/04 18:58
→ firejox: 前面幾個byte 都不是中文,先轉換行試試看 02/04 20:53
→ firejox: sed 's/\r$//' file.txt |iconv -f big5 -t utf8 02/04 20:53
→ firejox: 不是big5的中文 02/04 21:02