Unicode! - Mailing list pgsql-admin

From star star
Subject Unicode!
Date
Msg-id 20050311012012.61766.qmail@web53706.mail.yahoo.com
Whole thread Raw
Responses Re: Unicode!
Re: Unicode!
List pgsql-admin
I use PostgreSQL 8!

I have 2 file:
 
insert.htm
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<form name="form1" method="post" action="postgre_insert.jsp" >
  <input type="text" name="username">
  <input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
 
postgre_insert.jsp
<%@ page  contentType="text/html; charset=utf-8" import="java.sql.*" errorPage="" %>
<% 
 String username=request.getParameter("username");
 String str="insert into user_table values('"+username+"','try')";
 Class.forName("org.postgresql.Driver");
    String url = "jdbc:postgresql://localhost:5432/try";
    Connection conn = DriverManager.getConnection(url, "postgres", "pass");
    PreparedStatement s = conn.prepareStatement(str);
 s.executeUpdate();
 out.println("OK");
%>
I input "Tiếng Việt" on textfield and click Submit button. Insertion is successed.
But, when i view data in pgAdmin III(version 1.2.0), data is " Ti���ng Vi��‡t ".
Can you help me!?


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Functions and transactions
Next
From: Alex Turner
Date:
Subject: Re: IO Timeout