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

Posted on 2006-04-02
Last Modified: 2010-04-01
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
Question by:massrico
    LVL 11

    Accepted Solution


    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" %>

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

    if(request.getCharacterEncoding() == null){

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

    hope it helps.

    Author Comment

    Hi Frago

    Thanx for help i think that i missed these statements
    if(request.getCharacterEncoding() == null){

    it's now solved


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Title # Comments Views Activity
    method inner class 6 76
    web service Rest Client creation 4 68
    struts exact match support 3 42
    spring example errors 33 152
    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now