[opencms-dev] Problem of jsp encoding

Alexander Kandzior alex at opencms.org
Wed Nov 3 14:39:44 CET 2004


Moreover, on a the JSP page, you must also "declare" UTF-8 encoding in the JSP header, like this:
 
<%@ page pageEncoding="UTF-8" %>
 
This is just following the JSP standard since the servlet engine assumes ISO-8859-1 be default.
 
I just tried this and it works (using the armenian chars from the templateone demo...)
Please let me know if it works for your chinese chars as well.

Best Regards,
Alex.

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



 


  _____  

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Alexander Kandzior
Sent: Wednesday, November 03, 2004 2:23 PM
To: 'The OpenCms mailing list'
Subject: RE: Re: [opencms-dev] Problem of jsp encoding


You must change the "content-encoding" property of the file "/sites/default/index.jsp" to "UTF-8", it's currently set to "ISO-8859-1".

Best Regards,
Alex.

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



 


  _____  

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of ??
Sent: Wednesday, November 03, 2004 1:46 PM
To: The OpenCms mailing list
Subject: Re: Re: [opencms-dev] Problem of jsp encoding


hi YenHung Chen! 
    I know "中文" - it is unicode.
    however,when  i reedit it,i cann't identify it to correct chinese character.how can i do?

  
 
======== 2004-11-03 20:19:17 ========
 



"中文" - it is unicode

you input the chinese character, they must be converted to unicode.

lysss713 wrote: 

Hi all:

        

I encounter two problem,in one side,When I have installed the openCMS  successfully by default,however when I edit the sites/default/index.jsp in the workspace using chinese character ,as saving it ,the chinese character changed like this "中文".but when i open it in explorer,the chinese character display normally.In another,when i create a new jsp file,as I input the chinese character,the file can saved normally.but when explore it,it display in such character like this "中文".My developing enviroment like this:

	

	OS:win2000 server

	web server:tomcat5.0.27

	DataBase:mysql4.0.12

	explorer:IE6.0

	opencms_6.0_alpha_2









        lysss713 at 163.com

          2004-11-03

  


  _____  




_______________________________________________

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


= = = = = = = = = = = = = = = = = = = = = =   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041103/2ae06e9c/attachment.htm>


More information about the opencms-dev mailing list