yui / yuicompressor

YUI Compressor
http://yui.github.com/yuicompressor/
Other
3.01k stars 662 forks source link

unable to minify pipe "¦¦" and "¦" #297

Open Hariy2k opened 6 years ago

Hariy2k commented 6 years ago

I am trying to minify code in my application, unable to do it due to this issue. the pipes "¦¦" are converted in to un identified characters like this "��" moreover the encoding format of the new file is different from the source file.

pepinho24 commented 2 years ago

Hi, a little late to the party but I had the same issue with this var BOM = 'þÿ';. Probably if you change the encoding when running the compressor the symbols will persevere. As an alternative, I just replaced the "special" characters with their unicode representation so this works for me: var BOM = '\u00FE\u00FF';//'þÿ';