Subject | RE: Problems reading diacritic characters |
---|---|
Author | Prabhakar Krishnaswami |
Post date | 2004-03-30T21:13:08Z |
We had some code something like this
sqlBuffer.append("_UNICODE_FSS '");
if (temp != null)
{
sqlBuffer.append(escapeSQLQuotes(temp));
}
sqlBuffer.append("'");
Here temp contains the string to be appended. We insert this string into
the database.
Prabhakar Krishnaswami
Software Engineer
Dynix
pkrishnaswami@...
p 801-223-5817
f 801-223-5202
www.dynix.com
-----Original Message-----
From: Roman Rokytskyy [mailto:rrokytskyy@...]
Sent: Tuesday, March 30, 2004 1:31 PM
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Re: Unnecessary padding to Strings read
stmt.setString(1, "_UNICODE_FSS" + myStr);
Where did you get such idea?
(including database creation script)?
Roman
Yahoo! Groups Links
sqlBuffer.append("_UNICODE_FSS '");
if (temp != null)
{
sqlBuffer.append(escapeSQLQuotes(temp));
}
sqlBuffer.append("'");
Here temp contains the string to be appended. We insert this string into
the database.
Prabhakar Krishnaswami
Software Engineer
Dynix
pkrishnaswami@...
p 801-223-5817
f 801-223-5202
www.dynix.com
-----Original Message-----
From: Roman Rokytskyy [mailto:rrokytskyy@...]
Sent: Tuesday, March 30, 2004 1:31 PM
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Re: Unnecessary padding to Strings read
> We have had some problems storing strings with diacritic charactersWhat do you mean by prepending? Something like this:
> in interbase database using firebird driver v1.5 on JBoss 320
> environment on Redhat Linux Adverserver server 3.0. We saved the
> data prepending _UNICODE_FSS to strings.
stmt.setString(1, "_UNICODE_FSS" + myStr);
Where did you get such idea?
> When we later displayedPlease read our FAQ about using national characters.
> them in the browser, the strings displayed garbage.
> When thenCan you create example code that will show exactly what you did
> removed _UNICODE_FSS and used the parameter lc_ctype=UNICODE_FSS
> while connecting to the database.
> That didn't change anything.
>
> Can somebody help me with this issue?
(including database creation script)?
Roman
Yahoo! Groups Links