pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: star star <hoatamet@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Unicode!
Date: Thu, 10 Mar 2005 17:20:12 -0800 (PST)
Message-ID: <20050311012012.61766.qmail@web53706.mail.yahoo.com> (raw)

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#7871;ng Vi#7879;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á»#135;t ". 
Can you help me!?

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

view thread (23+ messages)  latest in thread

Message-ID: <20050311012012.61766.qmail@web53706.mail.yahoo.com>
Permalink:  ../20050311012012.61766.qmail@web53706.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050311012012.61766.qmail@web53706.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: hoatamet@yahoo.com
  Subject: Re: Unicode!
  In-Reply-To: <20050311012012.61766.qmail@web53706.mail.yahoo.com>
  References: <20050311012012.61766.qmail@web53706.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox