문제

Any suggestions on how to effectivley do this? I need it for autmization of .sql-data-delivery and couldn't find a solution till now. For reading out the encoding i use the juniversalchardet-1.0.3 library, which works pretty well. Still i also have to read out the the line-ending format and if needed change it. any help would be apprececiated.

도움이 되었습니까?

해결책 2

Found a solution: http://ostermiller.org/utils/LineEnds.html Works like a charm. Feel free to use it if u have a similar problem.

다른 팁

You can use the org.apache.commons.io.IOUtils-class. They have the fields LINE_SEPARATOR_UNIX and LINE_SEPARATOR_WINDOWS.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top