• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Character encoding, JSP and AJAX? General advice?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

    Keimo

    --
    Geronimo 2.2
    tomcat 6
    Centos linux
     
    Don't get me started about those stupid light bulbs.
    reply
      Bookmark Topic Watch Topic
    • New Topic