Yahoo Compressor affects encoding

Jun 4, 2010 at 1:38 PM

Hello. I've got js file which is UTF-8 encoded and contains some cyrillic characters. When I compress it using JavaScriptCompressor.Compress(result) these characters become something unreadable. What's wrong with it?

Coordinator
Jun 7, 2010 at 1:18 AM

Hello HiveHicks.

I wonder if this is the same issue that some else has reported: http://yuicompressor.codeplex.com/workitem/5028

 

?? possibly?

Jun 7, 2010 at 8:39 AM

The issue you mentioned helped me find out the problem. I just used another overload for JavaScriptCompressor.Compress, which accepts encoding as one of the parameters, so everything's OK now. Thanks.