You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Michael Wechner <mi...@wyona.com> on 2004/02/26 14:29:16 UTC
[Fwd: Re: [Epoz-development] unicode 00a0 no-break space and faeries
writing elvish.]
If I understand it correctly then Guido has solved some encoding issues re
Epoz and IE. Please see below.
Donovan Baarda wrote:
>Has anyone else hit this? Any solutions?
>
>
>
Just yesterday I tried to make Epoz elven-free for Silva, and I noticed
how IE doesn't set the correct charset for a page when designMode is set
too early, so what happened is this: the server sent UTF-8 encoded HTML,
but IE stayed in ISO-8859-1 mode, neither the HTTP header nor any meta
tag or even JavaScript trickery to get IE into UTF-8 mode did any good.
Messing about with the moment on which designMode was set did help: I
added some code in the body's onload attribute to set the designMode for
IE and removed the code that does it on the bottom (the floating script
below the iframe) so my current onload handler looks like this:
if (_SARISSA_IS_IE)
document.getElementById('epoz-editor').contentWindow.document.designMode
= 'On'; epoz = initSilvaEpoz(document.getElementById('epoz-editor'));
epozui = epoz.getTool('ui'); epoz.initialize();
and that seems to work just fine: special chars don't get borked anymore
in IE, and roundtripping works just fine as well.
I hope these are the same elves you ran into, and that this gets rid of
'em once and for all, I really don't like those pesky little critters!
Cheers,
Guido
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Epoz-development mailing list
Epoz-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/epoz-development
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://cocoon.apache.org/lenya/
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: [Fwd: Re: [Epoz-development] unicode 00a0 no-break space and
faeries writing elvish.]
Posted by Manos Batsis <mb...@humanmarkup.org>.
Hi,
Using _SARISSA_IS_IE is not the best way to detect IE and is supposed to
exist only for 'internal use'. I intent to change the browser detection
stuff in the next version of sarissa, so the _SARISSA_IS_IE will not be
available in the next version (which will be submitted to epoz).
You have been warned ;-)
Cheers,
Manos
Michael Wechner wrote:
>
> If I understand it correctly then Guido has solved some encoding issues re
> Epoz and IE. Please see below.
>
> Donovan Baarda wrote:
>
>> Has anyone else hit this? Any solutions?
>>
>>
>>
> Just yesterday I tried to make Epoz elven-free for Silva, and I noticed
> how IE doesn't set the correct charset for a page when designMode is set
> too early, so what happened is this: the server sent UTF-8 encoded HTML,
> but IE stayed in ISO-8859-1 mode, neither the HTTP header nor any meta
> tag or even JavaScript trickery to get IE into UTF-8 mode did any good.
> Messing about with the moment on which designMode was set did help: I
> added some code in the body's onload attribute to set the designMode for
> IE and removed the code that does it on the bottom (the floating script
> below the iframe) so my current onload handler looks like this:
>
> if (_SARISSA_IS_IE)
> document.getElementById('epoz-editor').contentWindow.document.designMode
> = 'On'; epoz = initSilvaEpoz(document.getElementById('epoz-editor'));
> epozui = epoz.getTool('ui'); epoz.initialize();
>
> and that seems to work just fine: special chars don't get borked anymore
> in IE, and roundtripping works just fine as well.
>
> I hope these are the same elves you ran into, and that this gets rid of
> 'em once and for all, I really don't like those pesky little critters!
>
> Cheers,
>
> Guido
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Epoz-development mailing list
> Epoz-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/epoz-development
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org