[opencms-dev] How to change the content-encoding property ?

Alexander Kandzior alex at opencms.org
Thu Oct 14 10:39:06 CEST 2004


Changing the default encoding for JSP is not possible in version 5 (it is
possible in version 6). 

In v5 the value is hardcoded in class com.opencms.file.CmsResourceTypeJsp.
You could change that value there and recompile the OpenCms core for another
default. 

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

 

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Xavier Ottolini
> Sent: Thursday, October 14, 2004 9:24 AM
> To: opencms-dev
> Subject: [opencms-dev] How to change the content-encoding property ?
> 
> Hi,
> 
> Every time I create a new JSP, the property 
> "content-encoding" is set to
> ISO-8859-1 by default. My Tomcat server uses the UTF-8 
> charset. I need to change the property of those files to 
> UTF-8. For the future maintenance, I should avoid this operation.
> 
> I use OpenCms 5.0
> 
> There is the following settings : in the .profiles :
> 
> $MYWEBAPP/WEB-INF/config/opencms.properties
> defaultContentEncoding=UTF-8
> 
> In /etc/profiles
> I set the following environment variable :
> CATALINA_OPTS="-Dfile.encoding=UTF-8"
> 
> In the Properties Manager, I tried to delete the "content-encoding" 
> property for the Typ "JSP". But an exception has been generated.
> 
> How to set the property "content-encoding" to UTF-8 by 
> default for the JSPs?
> 
> 
> Any help would be appreciated.
> 
> -- 
> Xavier Ottolini
> Développeur multimédia
> 
> Adelis
> 37, rue d'Engwiller
> F-67350 La Walck
> Téléphone : +33 (0) 3 88 72 29 10
> Télécopie : +33 (0) 3 88 72 29 19
> http://www.adelis.com
> 
> 
> 
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 




More information about the opencms-dev mailing list