[opencms-dev] Problem of jsp encoding
刘云
lysss713 at 163.com
Thu Nov 4 01:59:43 CET 2004
hi,Alexander Kandzior!
thanks you , it can works for my chinese chars.
i alreade closed bugs 425.
======== 2004-11-03 21:39:44 ========
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
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
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
= = = = = = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = = = = = =
lysss713 at 163.com
2004-11-04
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041104/f9e978c8/attachment.htm>
More information about the opencms-dev
mailing list