This is because most of the files in the package erroneously begin with the following three characters (hexadecimal) EF BB BF!! This makes for example the image browser not to work (with PHP). I would say this is a major problem and it is present in both FCKeditor_2.4.1.zip and FCKeditor_2.4.1.tar.gz and I even checked version 2.4.0 - same thing. I ended up writing a little script that goes through all the files recursively and removes these three bytes from the beginning of each file if present (not all files are corrupt in this way, but most of them are). This should be fixed by the developers ASAP as this is IMHO a major problem with fckeditor. The files are corrupt in the distribution packages, this is a shame!
For those without a hex editor, but who own Dreamweaver, open the docs listed above in DW, click Page Properties, and uncheck the unicode BOM checkbox. In my specific instance, I needed to change only three files:
the strange chars have nothing to do with a php bug, but a bad editor that isn't linux compatibel. /fckeditor$ grep '' * -ri | wc -l 188
there is still 188 files with the chars in them in release 2.4.2. so you still need to go edit them away before you have a clean release executing the following command will remove them all find . -type f -exec sed -i 's///' {} \;
if there are any files they are in twice, you will have to execute them once more and then they are gone.
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
RE:  -> What is this?
./fckeditor.php
./fckeditor_php4.php
./fckeditor_php5.php
./fckpackager.xml
./fckstyles.xml
./fcktemplates.xml
./fckconfig.js
./fckeditor.js (this one I dont know xD)
./editor/fckdebug.html
./editor/fckdialog.html
./editor/fckeditor.html
./editor/fckeditor.original.html
./editor/dialog/fck_image.html
./editor/dialog/fck_link.html
./editor/dialog/fck_image/*.*
./editor/dialog/fck_link/*.*
./editor/dialog/fck_smiley.html
I think that's all, you have to change just the things you need.
RE:  -> What is this?
RE:  -> What is this?
./fckeditor.php
./fckeditor_php4.php
./fckeditor_php5.php
Actual mileage may vary.
RE:  -> What is this?
/fckeditor$ grep '' * -ri | wc -l
188
there is still 188 files with the chars in them in release 2.4.2. so you still need to go edit them away before you have a clean release executing the following command will remove them all find . -type f -exec sed -i 's///' {} \;
if there are any files they are in twice, you will have to execute them once more and then they are gone.
regards
Jesper
RE:  -> What is this?