Unicode!

Поиск
Список
Период
Сортировка
От star star
Тема Unicode!
Дата
Msg-id 20050311012012.61766.qmail@web53706.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Unicode!
Re: Unicode!
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Functions and transactions
Следующее
От: Alex Turner
Дата:
Сообщение: Re: IO Timeout