Re: Unicode!

From: Miroslav Šulc <miroslav(dot)sulc(at)startnet(dot)cz>
To: star star <hoatamet(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Unicode!
Date: 2005-03-11 07:14:25
Message-ID: 42314551.4010909@startnet.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

First, I would try to set encoding (charset) for the insert.htm page to
UTF-8. That might help. If not, let us know.

Miroslav Šulc

star star wrote:

> I use PostgreSQL 8!
>
> I have 2 file:
> insert.htm
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; ">
> </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!
> <http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/>

Attachment Content-Type Size
miroslav.sulc.vcf text/x-vcard 400 bytes

In response to

  • Unicode! at 2005-03-11 01:20:12 from star star

Browse pgsql-admin by date

  From Date Subject
Next Message thomas.revell 2005-03-11 08:46:50 Re: How to enable automatic md5 password prompting when
Previous Message Tom Wallick 2005-03-11 06:51:14 How to enable automatic md5 password prompting when connecting to PostgreSQL