Subject | Re: [Firebird-Java] Re: jdbc driver and unicode |
---|---|
Author | paul@tei.or.th |
Post date | 2002-07-23T07:37:24Z |
> it seems to me that i know where your problem is. you're constructiongnope, this is cf not java.
> SQL statements by concatenating strings of the statement with
> parameters and then executing using java.sql.Statement, aren't you?
> java.sql.PreparedStatement. parameters are specified with '?', so SQLcf has a cfqueryparam tag that works like that, 2nd thing i tried. however
> to prepare looks like this:
unicode data is still trashed by either the driver or db. in fact if you
look at the test url's debug output you can see that tag in action.
> ok, if you're using the technique i described above this will not helpyes please.
> you anyway. if not, i will post an example here.
> > the cf page is encoded as utf-8. i'm inserting text like this:no, that works ok. cf just does a pass thru for most sql statements. i can
> > INSERT INTO uTest(uText)
> > VALUES(_UNICODE_FSS'#form.uText#')
>
> i doubt that server can parse this string, you should get SQLException
> here.
do some "funny" stuff with sql server & cf because of that feature.
> ok, i do not know yet where the problem you described is. it might beif its any help, if i use ibconsole i can key thai data into unicoded
> in our driver, however, it might be in database server itself. try to
tables. ibaccess, etc. fails.
> what access to JDBC API you have. i will also make some tests to checkthanks.
> if bug is related to our driver or database.