aspose file tools*
The moose likes JDBC and the fly likes how to insert japanese data from a jsp to DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to insert japanese data from a jsp to DB2" Watch "how to insert japanese data from a jsp to DB2" New topic
Author

how to insert japanese data from a jsp to DB2

Nitin Jengte
Greenhorn

Joined: Jul 25, 2002
Posts: 1
I want to insert japanese data from jsp. In the jsp I have one field and I am copying a japanese text in it and then posting this request to DB2.
When I am trying to retrieve this data in another jsp, I am getting junk(???).
Pl. help me to solve this problem.
Thanks in advance
Regards
Nitin
sachin kotgire
Greenhorn

Joined: Sep 30, 2002
Posts: 1
Try this code in your JSP
<%
String s1 = request.getParameter("param");
s1 = new String(s1.getBytes("ISO-8859-1"), "UTF-8");
%>
the string s1 will have your japanese character data. You can use this string to insert into the database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to insert japanese data from a jsp to DB2