Soalris 8 and UTF-8 characters issue

From: Bhavesh Shah (bshah_at_citadon.com)
Date: 09/28/04

  • Next message: mangesh.vengsarkar_at_tcs.com: "Error in writing a file"
    Date: Mon, 27 Sep 2004 17:11:30 -0700
    To: <sunmanagers@sunmanagers.org>
    
    

    Hi Gurus,

    I am running Solaris 8 5/03 and WebLogic 8.1

    I am unable to retrieve form POST data in utf-8 and display it back in
    Browser Client. I have added this line in the HTML form:
    <meta http-equiv="content-type" content="text/html; charset=utf-8">

    In Servlet Code, I have specified the encoding:
    // Retrieve the parameter data from Request
    req.setCharacterEncoding("UTF8");
    byte[] paramValue= req.getParameter("firstName").getBytes("UTF8");
    String paramString = new String(paramValue);

    This servlet works fine on my windows 2000 & weblogic8.1. But the same
    servlet sends back the actual input character On Solaris 8.

    I have set following on solaris 8 profile.
    environment variable: LC_ALL=en_US.UTF-8

    Any Help will be greatly appreciated.

    Thanks

    B
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: mangesh.vengsarkar_at_tcs.com: "Error in writing a file"