cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject [SUMMARY] : Encoding problems
Date Tue, 25 Mar 2003 14:34:15 GMT
to have the right caracter-set in sitamap.xmap write this :

      <map:serializer name="xml" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer"
pool-max="32" pool-min="16" pool-grow="4">
      	<encoding>iso-8859-1</encoding>
      </map:serializer>
      <map:serializer name="html" mime-type="text/html" src="org.apache.cocoon.serialization.HTMLSerializer">
      	<encoding>iso-8859-1</encoding>
      </map:serializer>    



-----Original Message-----
From: cocoon-users-return-48235-Maxime.Gheysen=swisscom.com@xml.apache.org [mailto:cocoon-users-return-48235-Maxime.Gheysen=swisscom.com@xml.apache.org]

Sent: Tuesday, March 25, 2003 3:25 PM
To: cocoon-users@xml.apache.org
Subject: RE: Encoding problems


In the doc it's written about setting this in web.xml :

<init-param>
  <param-name>form-encoding</param-name>
  <param-value>utf-8</param-value>
</init-param>

But it doesn't change anything with cocoon 2.0!


-----Original Message-----
From: Konstantin Piroumian [mailto:kpiroumian@apache.org] 
Sent: Tuesday, March 25, 2003 2:55 PM
To: cocoon-users@xml.apache.org
Subject: Re: Encoding problems


You can set container-encoding and form-encoding initialization parameters
in web.xml . Take a look at the web.xml from Cocoon distribution, there's a
comment about it.

----- Original Message -----
From: <Maxime.Gheysen@swisscom.com>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, March 25, 2003 16:36
Subject: RE: Encoding problems


Is there no other way to keep my french caracter set from page to page
(because I have to many pages and some request are xsp-request)
Tanks

-----Original Message-----
From: Yury Mikhienko [mailto:yuryx@mobicomk.donpac.ru]
Sent: Tuesday, March 25, 2003 2:20 PM
To: cocoon-users@xml.apache.org
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<Maxime.Gheysen@swisscom.com> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes
into things like "ц╘",...
> I tried diferent encoding into my pages (like <?xml version="1.0"
encoding="ISO-8859-1"?>), but nothing seems to work!
> how can I keep the accents?
>

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

--

Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message