Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors using yuicompressor

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?

like image 887
mrblah Avatar asked Jun 24 '09 02:06

mrblah


1 Answers

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).

like image 165
Kevin Hakanson Avatar answered Sep 19 '22 07:09

Kevin Hakanson