[opencms-dev] Latest Opencms prob with encoding
Vlachogiannis Evangelos
evlach at aegean.gr
Sat Apr 10 14:18:00 CEST 2004
Hi Alex,
Follows a common simple form (attached as well):
<%@ page
language="java"
contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"
%>
<%@ page session="false" %>
<%
request.setCharacterEncoding("UTF-8");
String s = request.getParameter("testparam");
out.println("Γεία σου "+s);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<h2>JSP Form with some greeks : τέστ</h2>
<form method="post" action"." accept-charset="UTF-8">
<input type="text" name="testparam">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
</html>
I could also use ISO-8859-7 instead of UTF-8. Well this depends from other
webapps that is under tomcat. For example I used Jakarta Jetspeed and I had
to put in tomcat param ISO-8859-7. This mean that Opencms has to rum using
ISO-8859-7 as well. So, then there is maybe a problem. Another issue is that
when I used UTF-8 search engines (google) did not parse my pages correctly
as well. It would be perfect if we could use UTF-8 only but there are still
constraints. What do you think / propose? Finally I have tried to use the
accept-charset in a <form but this does not seem to work.
Best Regards,
Vangelis
-----Original Message-----
From: Alexander Kandzior [mailto:alex at opencms.org]
Sent: Saturday, April 10, 2004 10:44 AM
To: opencms-dev at opencms.org
Subject: RE: [opencms-dev] Latest Opencms prob with encoding
Vangelis,
if you want to help with the encoding this would be greatly appreciated.
Since you apparently are used to work in a different charset then
ISO-8859-1, I have a simple question for you (and for everyone else
experienced in this encoding issues):
When you create a regular HTML web form with a JSP (not in OpenCms, just
standard JSP), and you want your users to be able to enter greek chars, how
do you handle the encoding for such a form? How do you make sure that when
you on the server site do a <% String str =
request.getParameter("greekinput"); %> after posting the form have the chars
actually encoded in greek?
Actually, I already have a pretty clear picture on how I think this works,
but I want to check with someone who does this on a regular basis to see if
I am right or missing something.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Vlachogiannis
> Evangelos
> Sent: Friday, April 09, 2004 5:50 PM
> To: 'opencms-dev at opencms.org'
> Subject: RE: [opencms-dev] Latest Opencms prob with encoding
>
>
> Hi Alex,
>
> Of course... Well, as I am using opencms to create greek websites, I
> would primary like to set the navtext and title properties using greek
> chars so that they can be displayed in page. I tried both configuring
> tomcat/opencms with ISO-8859-7 and UTF-8. None of them worked
> successfully. Following their
> resutls:
>
> ISO-8859-7
> source code : ;φσδφ σδ title file system
> : aooaa
> Navigation: ??????
>
> UTF-8
> source code : fine greek chars
> title :
> δÏÏδφ
> (encoded as ISO-8859-7 --> I.... Something like this)
> Navigation: I?I/I?I?I/I?
>
> I would love to see all (source code, tile, nav ... Show fine greek
> chars). I could maybe contribute on that with some guidelines from the
> experts...
>
> Another problem I faced on this "version" was when I tried to create a
> new project from a published folder ... I got a 404 tomcat error in
> the file frame. I then tried to make a new project using the "new
> project" from admin. That worked but the project appeared in the
> drop-down of project. Well I am not sure about the philosophy but I
> wqas expecting to see that in the "sites" one. I would rename the
> "project" drop down to "mode". What do you think?
>
> -----Original Message-----
> From: Alexander Kandzior [mailto:alex at opencms.org]
> Sent: Friday, April 09, 2004 10:48 AM
> To: opencms-dev at opencms.org
> Subject: RE: [opencms-dev] Latest Opencms prob with encoding
>
> Vangelis,
>
> encoding / i18n is current being worked on for the upcoming 6.0
> release. Can you specify in greater detail what your problems are with
> the current CVS version?
>
> Best Regards,
> Alex.
>
> Alexander Kandzior
> Alkacon Software - The OpenCms Experts http://www.alkacon.com
>
> > -----Original Message-----
> > From: opencms-dev-admin at opencms.org
> > [mailto:opencms-dev-admin at opencms.org] On Behalf Of Vlachogiannis
> > Evangelos
> > Sent: Thursday, April 08, 2004 8:08 PM
> > To: 'opencms-dev at opencms.org'
> > Subject: [opencms-dev] Latest Opencms prob with encoding
> >
> >
> > Hi all,
> >
> > I am using opencms 5.0.1 rel. Greek characters for properties
> > (navtext,
> > title) are working fine. I had managed that using tomcat
> and opencms
> > charset
> > : ISO-8859-7.
> >
> > I have just downloaded, build and install the latest
> opencms from CVS
> > and this is not working anymore. Any hints ideas please?
> >
> > Thnx,
> > Vangelis
> > _______________________________________________
> > 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
> >
> >
> >
>
> _______________________________________________
> 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
> _______________________________________________
> 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
>
>
>
_______________________________________________
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 --------------
A non-text attachment was scrubbed...
Name: form.jsp
Type: application/octet-stream
Size: 628 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040410/ac08db18/attachment.obj>
More information about the opencms-dev
mailing list