Subject | Re: bad news about encoding... |
---|---|
Author | Ardhivipala Gunawijaya |
Post date | 2002-05-17T11:18:42Z |
Hi All,
I'am beginner in Firebird-Java group.
I have problem in create SQL script for unicode,
can someone help, and give me sample code.
I have problem in create SQL script for unicode,
can someone help, and give me sample code.
for example, I want to do this:
INSERT INTO TEST (UNICODE_FSS_FIELD) VALUES
('碼/標準萬國')
or
INSERT INTO TEST (UNICODE_FSS_FIELD) VALUES (' هي الشفرة الموحدة يونِكود )
or
INSERT INTO TEST (UNICODE_FSS_FIELD) VALUES (' هي الشفرة الموحدة يونِكود )
Please, I need help
thanks and regards,
Ardhi
--- In Firebird-Java@y..., Marczisovszky Daniel <marczi@d...> wrote:
> Sorry, none of these works.properties.put("user", "sysdba");
>
> daniel
>
>
> Properties properties = new Properties ();
>
> properties.put("password","masterkey");
> properties.put("lc_ctype", "UNICODE_FSS");DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/develop/test.gdb", properties);
>
> // First
>
> con =
> PreparedStatement stmt = con.prepareStatement("insert intotest (win1250field) values (?)");
> stmt.setString(1,"\u0151rült");
> stmt.executeUpdate();DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/develop/test.gdb", properties);
>
> // Second
>
> con =
> PreparedStatement stmt = con.prepareStatement("insert intotest (win1250field) values (?)");
> stmt.setString(1, "õrült");stmt.executeUpdate();
>
Ardhivipala Gunawijaya
ICQ#: 76732552
Current ICQ status: |
i See more about me:
__________________________________________________________________