Cygwin command not found bad characters found in .bashrc 357\273\277

前端 未结 6 894
一生所求
一生所求 2021-01-05 16:42

I\'m new to Cygwin, I just installed it and attempted to set some simple environment variables. However, when I open the command shell, I get the error \"#357\\273\\277 com

6条回答
  •  不知归路
    2021-01-05 17:23

    As far as I know, a common problem with files saved in Notepad++ as UTF-8 and Cygwin is that Notepad++ saves UTF-8 encoded files with a byte order mark by default. This BOM character is not quite compatible with unix-like environments like Cygwin.

    If you need unicode characters in these files, then you can try using the "UTF-8 without BOM" encoding in Notepad++, otherwise you can use ANSI or other encodings that don't use a BOM by default.

    Besides the encoding, make sure the file's saved with unix (LF) line-breaks.

提交回复
热议问题