So after googling for a few hours and not finding much I started to think about it. I decided to pull up the file in the browser to see how it rendered the file. Sure enough on the line that it was erroring was a bunch of junk data that looked something like this:
Error: illegal character
Source File: http://localhost/javascript/datetimepicker_css.js
Line: 9, Column: 12
Source Code:
var dtToday;瘀愀爀 䌀愀氀㬀ഀ
I remembered about a year ago I was using a plugin for cart systems (http://www.magic-seo-url.com/) and remembered that I had to upload one of the files in "Binary mode" rather than the default "ASCII" mode or you would get this type of thing.
So I fired up Filezilla, went to transfer -> transfer type and selected "Binary" rather than "Auto" and uploaded the file again. Then refreshed the browser that had the file pulled up and what do you know, it didn't have the junk data
I checked the page with the javascript on it and it worked just like it did locally. Hope this helps!!!
Summary:
ftw = "BINARY MODE"
