| Author |
Message |
qchen
Joined: 08 Nov 2004 Posts: 1
|
Posted: Mon Nov 08, 2004 8:19 pm Post subject: Internationalization support |
|
|
Hello,
Does the dbExpress driver support internationalization (unicode, UTF-8 etc)? do you have some Delphi sample code that shows how to retrieve UTF-8 encoded Text field data?
Thanks in advance! |
|
| Back to top |
|
 |
VISOCO VISOCO Software Manager
Joined: 15 Jul 2002 Posts: 48
|
Posted: Wed Nov 10, 2004 10:21 am Post subject: RE: Internationalization support |
|
|
Hi,
Unfortunately, dbExpress technology itself doesn't support Unicode. _________________ Best regards,
VISOCO Software Team
--
VISOCO Software - Sybase connectivity products |
|
| Back to top |
|
 |
VISOCO VISOCO Software Manager
Joined: 15 Jul 2002 Posts: 48
|
Posted: Wed Nov 10, 2004 6:54 pm Post subject: RE: Internationalization support |
|
|
We think, the next method can help (or something like this)
If you have a field like
data univarchar(100)
you can do something like
select convert(varbinary(200), data) as data from TestTable
Then, the following code will extract and convert the binary data
var
S: String;
W: WideString;
begin
...
S := SQLDataSet1.Fields[0].AsString;
W := WideCharToString(PWideChar(Pointer(S)));
...
end _________________ Best regards,
VISOCO Software Team
--
VISOCO Software - Sybase connectivity products |
|
| Back to top |
|
 |
|