Closed GoogleCodeExporter closed 9 years ago
testtest1.txt
多了BOM字符。于是第一行待匹配文字成了「‹BOM›一國」。
如图。
比较 testtest1-no-bom.txt 與 testtest1.txt 。
Original comment by chen....@gmail.com
on 13 Nov 2012 at 3:43
Attachments:
參考: http://www.auiou.com/relevant/00000470.jsp
Original comment by chen....@gmail.com
on 13 Nov 2012 at 3:45
明白了,原來是這樣~
字典檔案存成utf8不含BOM就正常了。
我真是搞笑了~
謝謝回復啦~
Original comment by roy.yu...@gmail.com
on 13 Nov 2012 at 4:22
小弟廢話一句,Comment
#2的link提到的兩個軟件均不是自由/開源/免費軟體。
使用自由軟體Notepad++也可以在Windows下去除純文本檔案的BOM。
Original comment by damage3...@gmail.com
on 13 Nov 2012 at 4:25
Original comment by byvo...@gmail.com
on 15 Nov 2012 at 6:31
BOM在Windows環境還是比較常見的,我會在近期嘗試解決這個問�
��。
Original comment by damage3...@gmail.com
on 15 Nov 2012 at 6:39
I made a pull request for this issue, please review it.
https://github.com/BYVoid/OpenCC/pull/13
Original comment by damage3...@gmail.com
on 16 Nov 2012 at 5:17
Fixed by
https://github.com/BYVoid/OpenCC/commit/b8d6c994037878fbc5fa7f21941f8bee08f94e39
Original comment by damage3...@gmail.com
on 20 Feb 2013 at 8:42
Original issue reported on code.google.com by
roy.yu...@gmail.com
on 12 Nov 2012 at 3:02Attachments: