You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Volkm@r" <pl...@arcor.de> on 2004/05/26 12:41:39 UTC
ResourceReader and charset information
How can I tell ResourceReader to put a certain charset in the http header?
<map:match pattern="*.css">
<map:read type="resource"
src="resources/styles/{1}.css"
charset="utf-8" <== This doesn't work. How can I get it?
mime-type="text/css">
<!-- option sitemap parameters -->
...
</map:read>
</map:match>
--
Volkmar W. Pogatzki
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ResourceReader and charset information
Posted by Joerg Heinicke <jo...@gmx.de>.
On 26.05.2004 12:41, Volkm@r wrote:
> How can I tell ResourceReader to put a certain charset in the http header?
>
> <map:match pattern="*.css">
> <map:read type="resource"
> src="resources/styles/{1}.css"
>
> charset="utf-8" <== This doesn't work. How can I get it?
>
> mime-type="text/css">
> <!-- option sitemap parameters -->
I fear the only possibility is to hack it into the mime-type as both
settings end in the content-type header:
mime-type="text/css; char-set=utf-8"
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ResourceReader and charset information
Posted by "Volkm@r" <pl...@arcor.de>.
Leszek Gawron wrote:
> Guessing it shoud be encoding="utf-8" instead of charset
Doesn't work either:-(
--
Volkmar W. Pogatzki
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ResourceReader and charset information
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Volkm@r wrote:
> How can I tell ResourceReader to put a certain charset in the http header?
>
> <map:match pattern="*.css">
> <map:read type="resource"
> src="resources/styles/{1}.css"
>
> charset="utf-8" <== This doesn't work. How can I get it?
>
> mime-type="text/css">
> <!-- option sitemap parameters -->
> ...
> </map:read>
> </map:match>
>
Guessing it shoud be encoding="utf-8" instead of charset
Leszek Gawron
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org