Java read file got a leading BOM [  ]

前端 未结 6 1306
孤独总比滥情好
孤独总比滥情好 2020-12-20 23:15

I am reading a file containing keywords line by line and found a strange problem. I hope lines that following each other if their contents are the same, they should be handl

6条回答
  •  遥遥无期
    2020-12-21 00:07

    I had a similar case in my previous project. The culprit was the Byte order mark, which I had to get rid of. Eventually I implemented a hack based on this example. Check it out, might be that you have the same problem.

提交回复
热议问题