To resolve the problem, check the encoding of the file
1. In Windows a simple method is opening the file with Notepad. Then Select File->Save As...
2. In Linux, you may use: file -i <path_to_the_file>
[spectrum@spectrumrh]# file -i SetScript_custom
SetScript_custom: text/x-shellscript;
charset=utf-8[spectrum@spectrumrh]#
To change the encoding of a file
1. In Windows, you may open the file in Notepad as before, select File->Save As..., and save the file selecting UTF-8 as the encoding, before to press Save.
2. In Linux, you may use iconv:
iconv -f utf-8 -t us-ascii//TRANSLIT SetScript_custom -o SetScript_custom2 You may find examples of using iconv in next URL:
https://www.tecmint.com/convert-files-to-utf-8-encoding-in-linux/After change the encoding of the file, it may be necessary to review its content, in case the conversion added some strange characters.