How to convert Windows end of line in Unix end of line (CR/LF to LF)

后端 未结 8 787
臣服心动
臣服心动 2020-11-29 18:59

I\'m a Java developer and I\'m using Ubuntu to develop. The project was created in Windows with Eclipse and it\'s using the Windows-1252 encoding.

To convert to UTF-8

8条回答
  •  忘掉有多难
    2020-11-29 19:17

    Go back to Windows, tell Eclipse to change the encoding to UTF-8, then back to Unix and run d2u on the files.

提交回复
热议问题