0

I don't know when and how this happens, but very often, when I want to change something in a project I either download the code from the web server via Filezilla or pull it from my git repository the javascript.min files have these invalid characters.

I always solved this by re-downloading the files and replacing them. But why is this happening? It really annoys me.

When I open the file on the web server it has these characters too, but the site/functionality is working.

After downloading and testing it locally I get for example: jQuery is not defined...

Please see the screenshot below:

Invalid characters

Phydeaux
  • 2,795
  • 3
  • 17
  • 35
lSD
  • 13
  • 4

1 Answers1

0

I think Filezilla caused the problem. When donwloading a file, lets say jquery.min.js, some strings where transformed to invalid characters.

I set Filezilla transfer-type to binary and it worked.

lSD
  • 13
  • 4