Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Character encoding, JSP and AJAX? General advice?  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all

I'm looking for advice as to how I should approach character encoding in our new JSP application.

  • The JSP web part can be e.g. ISO-8859-1 or UTF-8.
  • We need some typical west european special characters. It is not likely that we will need full UTF-8.
  • The site uses ajax POST and http GET a lot. I read somewhere that an ajax call would always use UTF-8 (true?).
  • The database end (Oracle) has a CGI-interface (written in C) which gets called over http POST. The cgi and Oracle use ISO-8859-1.
  • A setup where Oracle, the CGI and the webserver all run on the same linux machine is possible.

  • Would you use ISO-8859-1 everywhere and try to handle the ajax calls (UTF-8) separately or would you try to do the whole web part in UTF-8 and convert somewhere in between? Where and how?

    I would be thankful for your views and opinions.


    Geronimo 2.2
    tomcat 6
    Centos linux
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!