You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Artur Hefczyc <Ar...@wap.net.pl> on 2000/06/14 22:35:32 UTC

problem with encoding in xsp pages again

I use iso-8859-2 encoding in my pages.
As long as i use only xsl formating it working fine,
but when i use xsp engine, it gives me
"?" in place of some characters.
I use:
<?xml version="1.0" encoding="iso-8859-2"?>
in my xml and xsl files and in cocoon.properties
i use options:
processor.xsp.encoding = iso-8859-2 
formatter.text/html.MIME-type = text/html;charset=iso-8859-2
formatter.text/html.encoding = iso-8859-2
and so on.
I think java exchanges national characters into "?", but what can i do
to get my national characters from xsp pages?

Artur Hefczyc

-- 
Artur Hefczyc    Artur.Hefczyc@wap.net.pl
wap.net.pl            http://www.wap.net.pl/
tel: +48605433928       fax: +48583414884


Re: problem with encoding in xsp pages again

Posted by Artur Hefczyc <Ar...@tens.com.pl>.
> > > i use options:
> > > processor.xsp.encoding = iso-8859-2
> > > formatter.text/html.MIME-type = text/html;charset=iso-8859-2
> > > formatter.text/html.encoding = iso-8859-2
> > > and so on.
> It was very helpful - right know i asked my sysadmin to commit these changes as
> well. I hope this will fix my problems with the corect charset encoding...
> One question that bothers me: in my xml I use xsp:logic to insert certain data
> from a database. Now - the texts from database contain HTML tags like <br> or
> <p> or <b> - how can I transport them to the output (browser window) without
> them being transformed into something like &lt;br&gt; ?
I also found that problem in last days. I remermber, in mailing list archive,
i found information that setting option "disable-output-encoding" may help.
I don't remember, how, and where it shuld be set but it is possible to find it,
or maybe somebody can help.

Artur Hefczyc
-- 
Artur Hefczyc, 
e-mail: artur@tens.com.pl


Re: problem with encoding in xsp pages again

Posted by Lukasz Felsztukier <L....@digitalone.pl>.
----- Original Message -----
From: Artur Hefczyc <Ar...@wap.net.pl>
To: <co...@xml.apache.org>
Sent: Monday, June 19, 2000 1:09 AM
Subject: Re: problem with encoding in xsp pages again


[cut[
> > i use options:
> > processor.xsp.encoding = iso-8859-2
> > formatter.text/html.MIME-type = text/html;charset=iso-8859-2
> > formatter.text/html.encoding = iso-8859-2
> > and so on.

It was very helpful - right know i asked my sysadmin to commit these changes as
well. I hope this will fix my problems with the corect charset encoding...
One question that bothers me: in my xml I use xsp:logic to insert certain data
from a database. Now - the texts from database contain HTML tags like <br> or
<p> or <b> - how can I transport them to the output (browser window) without
them being transformed into something like &lt;br&gt; ?

Cheers,
LF


Re: problem with encoding in xsp pages again

Posted by Artur Hefczyc <Ar...@wap.net.pl>.
On Wed, 14 Jun 2000, you wrote:
> I use iso-8859-2 encoding in my pages.
> As long as i use only xsl formating it working fine,
> but when i use xsp engine, it gives me
> "?" in place of some characters.
> I use:
> <?xml version="1.0" encoding="iso-8859-2"?>
> in my xml and xsl files and in cocoon.properties
> i use options:
> processor.xsp.encoding = iso-8859-2 
> formatter.text/html.MIME-type = text/html;charset=iso-8859-2
> formatter.text/html.encoding = iso-8859-2
> and so on.
> I think java exchanges national characters into "?", but what can i do
> to get my national characters from xsp pages?
At last found solution myself! :-)
So, cocoon ver. 1.7.3 doesn't support encoding for xsp.
Upgrading to ver. 1.7.4 it's a solution of a problem.
And now, i think about such problem:
If i want to build multilingual site with pages using different encoding
how it is posible?
If encoding system is defined in configuration file how can i change it "on the fly"?
Artur Hefczyc
-- 
Artur Hefczyc    Artur.Hefczyc@wap.net.pl
wap.net.pl            http://www.wap.net.pl/
tel: +48605433928       fax: +48583414884