From: Bhavesh Shah (bshah@citadon.com)
Date: Mon Sep 27 2004 - 20:11:30 EDT
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
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:30 EDT