I am getting some errors when trying to run yuicompressor.
it says:
[error] 1:2:illegal character
[error] 1:2:syntax error
[error] 1:3 illegal character
Could this be because I am saving it as the wrong encoding or something?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have seen issues with YUICompressor and files that are saved in UTF-8 with the Byte Order Mark (BOM). The default for Visual Studio 2008 seems to be to save them this way. To solve it, I had to save the file with a different encoding. In VS2008, this was File – Advanced Save Options – Encoding : Unicode (UTF-8 without signature).