^M special character in Filename

Hi All,

Special character ? is added in between filename. Am not able to figure our why this is happening. In my Development environment special characters are not present. This issue is happening in the higher environment.

It would be helpful if somebody can tell what are the possible reasons in which special characters will be added

T#.PGYR?13.P063016.D160512.T0647111

^M is the representation of the carriage-return character from a file that was created by a DOS/Windows operating system, and now you are accessing it via a Unix/Linux operating system.
See more

If I had to guess, someone's script like

echo something > filename

...which they saved in Microsoft Windows Notepad, turning it into

echo something > filename^M

Can you please check file transfer mode in your FTP tool, I am sure it will be binary mode which you need to change to text format to avoid this ^M.