1 Reply Latest reply: Aug 10, 2011 3:04 AM by EJP RSS

    Servlet encoding for non UTF-8 characters

    731413
      Hi whenever i ran my following code its working in the standalone application
      While i am trying in the servlet its showing invalid(?) characters in the output format.
      Standalone: String temp="Buôn Ma Thuột";
      System.out.println("Test Buôn Ma Thuột:"+temp);

      out put:
      Test Buôn Ma Thuột:Buôn Ma Thuột
      Web application:
      String temp="Buôn Ma Thuột";
      System.out.println("Test Buôn Ma Thuột:"+temp);
      out put:
      Test Buôn Ma Thu?t:Buôn Ma Thu?t
      i changed the content type in the two ways
      a.UTF-8
      b.ISO-8859-1
      Even though i wont get required output.

      Kindly help me.

      Edited by: user12145487 on Aug 10, 2011 12:37 AM