• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UTF8 issue on solaris

 
r kadam
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

I have set following on solaris:
environment variable: LC_ALL=en_US.UTF-8
JVM argument : -Dfile.encoding=UTF-8

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic