• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

Problem with the Grrek Lang. in JSP forms!!!

Hi All

I work with site that deals with greek language and i faces this problem

The JSP page is working 100% with the greek lang. (UTF-8) but when my form sends greek statements to another page through TextBox, strange characters appers like that "Καλωσηρθατε" while the original statement is "Καλωσηρθατε".

I get the statement with <%=request.getParameter("test")%>

Thanx for help
0
massrico
Asked:
massrico
1 Solution
 
fargoCommented:
Hi,

the following is needed,

in the jsp page, do keep at the start of the page the following directive
<%@ page pageEncoding="UTF-8" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" %>

OR
if you are getting the values in servlet, then try the following

if(request.getCharacterEncoding() == null){
   request.setCharacterEncoding("UTF-8");
}

String test = request.getParameter("test");

hope it helps.
fargo
0
 
massricoAuthor Commented:
Hi Frago

Thanx for help i think that i missed these statements
if(request.getCharacterEncoding() == null){
   request.setCharacterEncoding("UTF-8");
}

it's now solved

thanks
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now