Hi.
I'm to do some testing using UTF-8 and FCKeditor.
Before I changed from:
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";
to this in main page:
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
everything worked fine:
After the change to XHTML then the code below fails (not the var declaration though). All other javascript in page works fine but not when I try to create a reference to FCKeditor.
Any suggestion on how to fix.
var oFCK;
if (navigator.appName=="Netscape")
oFCK = MyTextarea___Frame.contentWindow;
else
oFCK = MyTextarea___Frame;
Tue, 10/11/2005 - 14:49
#1
RE: Need help for a UTF-8 problem?
FCKeditor 2.1
UTF-8 problem above occurs in FF 1.0.6 (tested on XP)
Works in IE 6.0
Anyone with a solution?
RE: Need help for a UTF-8 problem?
Okay got a bit further:
I managed to make it work in FF also if I skipped the DOCTYPE part with XHTML.
If I only used this (PHP):
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
And no DOCTYPE then it works in both IE and FF.
But... strange and not good that if I use something like:
echo "<!DOCTYPE html
PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
or the examples with doctype before this post then it only works in IE and not FF....
Anyone out there that have a clue what is going on and why the stuff I mentioned in my first post does not work in FF with DOCTYPE xhtml.... ???