UseUnicode = True connects with wrong charset
-
- Posts: 7
- Joined: Mon 26 Oct 2009 12:55
UseUnicode = True connects with wrong charset
Hi,
I have a DB in UTF8 and I would connect to this DB with charset UTF8. Bu I have noted in the MON$ATTACHMENTS table that, when UseUnicode is True the connection to the DB is UNICODE_FSS, when UseUnicode is False then the connection to the DB is UTF8. But in both cases it should be UTF8 when I set the charset to UTF8.
IBCConnection1.Options.charset := 'UTF8';
What's going wrong here?
Thanks for your help in advanced
bye
Robert
IBDAC 3.10.0.16
Delphi 2009
I have a DB in UTF8 and I would connect to this DB with charset UTF8. Bu I have noted in the MON$ATTACHMENTS table that, when UseUnicode is True the connection to the DB is UNICODE_FSS, when UseUnicode is False then the connection to the DB is UTF8. But in both cases it should be UTF8 when I set the charset to UTF8.
IBCConnection1.Options.charset := 'UTF8';
What's going wrong here?
Thanks for your help in advanced
bye
Robert
IBDAC 3.10.0.16
Delphi 2009
-
- Posts: 7
- Joined: Mon 26 Oct 2009 12:55
Are there any plans to use UTF8 instead of UNICODE_FSS, because UNICODE_FSS is deprecated?
bye
Robert
UNICODE_FSS:
Unicode UTF-8. An old implementation that accepts malformed strings and does not enforce correct max. string length. All characters 3 bytes, no case mapping.
Superseded in Firebird 2.0 with the UTF8 character set. Deprecated.
bye
Robert
UNICODE_FSS:
Unicode UTF-8. An old implementation that accepts malformed strings and does not enforce correct max. string length. All characters 3 bytes, no case mapping.
Superseded in Firebird 2.0 with the UTF8 character set. Deprecated.
-
- Posts: 15
- Joined: Thu 18 Nov 2010 11:32
Hello,
When I set UseUnicode to true with an UTF8 database on Delphi 2010 pro.
I have access violation too in Devexpress (cxBDData.pas) :
Without problem in previous version. All old .dcu has been removed.
You can test with the samples I have sent for this Thread
When I set UseUnicode to true with an UTF8 database on Delphi 2010 pro.
I have access violation too in Devexpress (cxBDData.pas) :
Code: Select all
function TcxValueDefDBReader.GetValue(AValueDef: TcxValueDef): Variant;
var
AField: TField;
begin
AField := TcxDBDataField(AValueDef.LinkObject).Field;
if Assigned(AField) then
Result := GetFieldValue(AField) // <- AV here
else
Result := inherited GetValue(AValueDef);
end;
You can test with the samples I have sent for this Thread
-
- Posts: 15
- Joined: Thu 18 Nov 2010 11:32
Reinstalled again, removed all dcu files, but the access violation remains.
During design time, the whole IDE crashes.
Using charset Unicode_fss avoids the access violation, but changing the charset is not what I want.
It's interesting that some tables can be opened, other's not.
The problem tables use the master source property, maybe it's related to that.
There are other problems with the master-detail connection, I'll open another topic for that.
During design time, the whole IDE crashes.
Using charset Unicode_fss avoids the access violation, but changing the charset is not what I want.
It's interesting that some tables can be opened, other's not.
The problem tables use the master source property, maybe it's related to that.
There are other problems with the master-detail connection, I'll open another topic for that.
-
- Posts: 15
- Joined: Thu 18 Nov 2010 11:32
-
- Posts: 15
- Joined: Thu 18 Nov 2010 11:32