title: supporting bilingual application struts framework
body: <p>I am currently working on a Bilingual application (English and Arabic) with struts framework.</p>
  
  <p>My application is currently built to support English characters. </p>
  
  <p>Now am trying to post and read UTF-8 encoded characters on my JSP pages in Tomcat 6 environment.</p>
  
  <p>So i have the basic things set up in all my jsp pages and  action class.</p>
  
  <p>I have set this in my action class </p>
  
  <pre><code>            `request.setCharacterEncoding("UTF-8");
      response.setCharacterEncoding("UTF-8");
      response.setContentType("UTF-8");`
  </code></pre>
  
  <p>In my jsp pages: <code>&lt;%@page pageEncoding="UTF-8"%&gt;
  &lt;%@page language="java" contentType="text/html;charset=UTF-8"%&gt;</code></p>
  
  <p>So when i try to post Arabic characters to my jsp page, it displays junk characters.</p>
  
  <p>How do i correct it? what else do i need to do to support arabic or chinese characters?</p>
  
  <p>Also, am using a database to save the form once the user fills out the application. The user can either use English or arablic to fill the form.</p>
  
  <p>How do i achieve this? </p>