Re: Unicode!

Поиск
Список
Период
Сортировка
От Miroslav Šulc
Тема Re: Unicode!
Дата
Msg-id 42314551.4010909@startnet.cz
обсуждение исходный текст
Ответ на Unicode!  (star star <hoatamet@yahoo.com>)
Список 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/>



Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Wallick
Дата:
Сообщение: How to enable automatic md5 password prompting when connecting to PostgreSQL
Следующее
От: thomas.revell@powerconv.alstom.com
Дата:
Сообщение: Re: How to enable automatic md5 password prompting when