jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

FCKEditor compability / Multiple BOMs could appear in output #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have strange issues with minify and FCKEditor. FCK says it cant find some
objects and it doesnt load toolbars for textareas. 
Solution is use/copy file  fckeditor/editor/fckeditor.original.html instead
of fckeditor/editor/fckeditor.html. You also might have to remove 3 byte
utf BOM from beggining of that file 

Original issue reported on code.google.com by lsto...@gmail.com on 20 May 2008 at 10:40

GoogleCodeExporter commented 9 years ago
What version of Minify are you using (1.x or from the current SVN)?

Although unrelated to your problem, I think, it's true that minify could 
possibly
combine UTF-8 files resulting in multiple BOMs in the served file. We should 
probably
just strip these with something like:

str_replace(pack("CCC",0xef,0xbb,0xbf), '', $str);

Or maybe only those appearing at the beginning of files...

Original comment by mrclay....@gmail.com on 20 May 2008 at 2:04

GoogleCodeExporter commented 9 years ago
In 2.0.0 Minify_Source::getContent removes any leading BOMs.

Original comment by mrclay....@gmail.com on 22 May 2008 at 8:37

GoogleCodeExporter commented 9 years ago
Not sure the FCKE bug has anything to do with Minify, but the BOM issue was 
resolved,
so I'm closing this.

Original comment by mrclay....@gmail.com on 1 Jun 2008 at 3:33