Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

encoding Greek characters - puzzled!

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have a registration form for a Greek web site. I had issues displaying Greek characters.

Then i added the below page header to my JSP

and also i have used a filter to add UTF-8 to the response.


The above fix works perfectly fine with Apache tomcat server in dev environment but fails in weblogic server in production.

I have ensured that the weblogic.xml file also has encoding set to UTF-8, but still no success.


I tried logging the Greek characters using log4j with encoding set to UTF-8 to check whether the problem is with rendering the characters are pulling the characters from DB. But in the logs the Greek characters are not displayed even in the dev environment.

Adding salt to the burn when i sysout Greek characters in a test program Greek characters are shown in eclipse console without any problem.

I am puzzled here what actually controls the encoding format of a piece of code in execution and how to fix the discrepancies ???

Any thoughts on this would be much appreciated....

Thanks tiny ad, for helping me escape the terrible comfort of this chair.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic