Subject | Re: Exception reading data |
---|---|
Author | rrokytskyy |
Post date | 2002-05-28T08:55:10Z |
Hi,
DATABASE ... DEFAULT CHARACTER SET ..." or "CREATE TABLE ...(col1
VARCHAR(50) CHARACTER SET .., ...)". If you did not use such DDL
statements, then your database uses NONE.
case that reproduces this error) with your database metadata?
But you can change encodings of particular tables using:
ALTER TABLE a_table ALTER COLUMN a_col TYPE VARCHAR(...) CHARACTER
SET WIN1252;
(That's what Language Reference says, I didn't try by myself, it
might contain mistakes)
download CVS snapshot I made yesterday from
http://groups.yahoo.com/group/Firebird-Java/files/client-
java_snapshot_20020527.zip
that after beta1.
Best regards,
Roman
> I just installed IBPhonix and JCA-JDBC. I didn't change anything.Charset is specified on database or table creation: "CREATE
> So I think DB should be NONE.
DATABASE ... DEFAULT CHARACTER SET ..." or "CREATE TABLE ...(col1
VARCHAR(50) CHARACTER SET .., ...)". If you did not use such DDL
statements, then your database uses NONE.
> OK! I tried to set lc_ctype=NONE. But that still leads to the sameThat is strange. Can you send me your program (or prepare small test
> result, the same exception. I deleted all rows from my table,
> filled them and read them having lc_ctype=NONE.
case that reproduces this error) with your database metadata?
> I know this is the wrong newsGroup but can you please tell me howYou cannot change default encoding of the database after creation.
> to change the character encoding from Firebird. I found nothing
> yet about that topic in the documentation.
But you can change encodings of particular tables using:
ALTER TABLE a_table ALTER COLUMN a_col TYPE VARCHAR(...) CHARACTER
SET WIN1252;
(That's what Language Reference says, I didn't try by myself, it
might contain mistakes)
> Could it be that I have to download a newer Version of JCA-JDBC? IYes, you definitely need! If you do not have CVS access, you can
> saw some postings which sais that there are made some changes in
> character encoding since Beta 1.
download CVS snapshot I made yesterday from
http://groups.yahoo.com/group/Firebird-Java/files/client-
java_snapshot_20020527.zip
> By the way, why is there no exception using Interclient? HavingI do not remember exactly when we introduced lc_ctype, it might be
> problems with my character coding doesn't Interclient have to have
> the same problems?
that after beta1.
Best regards,
Roman