pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Miroslav Šulc <miroslav.sulc@startnet.cz>
To: star star <hoatamet@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Unicode!
Date: Fri, 11 Mar 2005 08:14:25 +0100
Message-ID: <42314551.4010909@startnet.cz> (raw)
In-Reply-To: <20050311012012.61766.qmail@web53706.mail.yahoo.com>
References: <20050311012012.61766.qmail@web53706.mail.yahoo.com>

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/; 

Attachments:

miroslav.sulc.vcf (text/x-vcard, 401B) download begin:vcard fn;quoted-printable:Miroslav =C5=A0ulc n;quoted-printable:=C5=A0ulc;Miroslav org:StartNet s.r.o. adr;quoted-printable;quoted-printable:;;Vrchlick=C3=A9ho 161/5;Praha 5;;150 00;=C4=8Cesk=C3=A1 republika email;internet:miroslav.sulc@startnet.cz title:CEO tel;work:+420 257 225 602 tel;cell:+420 603 711 413 x-mozilla-html:TRUE url:http://www.startnet.cz version:2.1 end:vcard

view thread (23+ messages)  latest in thread

Message-ID: <42314551.4010909@startnet.cz>
Permalink:  ../42314551.4010909@startnet.cz/
Also on:    postgresql.org/message-id/42314551.4010909@startnet.cz

 · 

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: miroslav.sulc@startnet.cz, hoatamet@yahoo.com
  Subject: Re: Unicode!
  In-Reply-To: <42314551.4010909@startnet.cz>
  References: <20050311012012.61766.qmail@web53706.mail.yahoo.com> <42314551.4010909@startnet.cz>

* 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