mobermaier
Member²
I have a 10.2.04 Oracle UTF DB, and I try to write some Unicode data to a clob.
Compiled with D2009 the clob content looks ok,
using D7 (and TMS Unicode Controls) the clob content is wrong.
==== snip ====
{$IFDEF VER150}
var slFile: TTNTStringList;
{$ENDIF}
{$IFDEF VER200}
var slFile: TStrings;
{$ENDIF}
sLobContent: WideString;
begin
. . .
{$IFDEF VER150}
slFile := TTNTStringList.Create;
{$ENDIF}
{$IFDEF VER200}
slFile := TStringList.Create;
{$ENDIF}
. . .
slFile.SaveToFile('D:\Temp\test_clob.txt');
sLobContent := slFile.Text;
FORABlob.AsWideString := sLobContent; // here everything as expected
sLobContent := FORABlob.AsWideString; // here not so much ?
==== snip ====
I'm probaly missing something obvious,
can anybody help?
Thanks,
Michael
Compiled with D2009 the clob content looks ok,
using D7 (and TMS Unicode Controls) the clob content is wrong.
==== snip ====
{$IFDEF VER150}
var slFile: TTNTStringList;
{$ENDIF}
{$IFDEF VER200}
var slFile: TStrings;
{$ENDIF}
sLobContent: WideString;
begin
. . .
{$IFDEF VER150}
slFile := TTNTStringList.Create;
{$ENDIF}
{$IFDEF VER200}
slFile := TStringList.Create;
{$ENDIF}
. . .
slFile.SaveToFile('D:\Temp\test_clob.txt');
sLobContent := slFile.Text;
FORABlob.AsWideString := sLobContent; // here everything as expected
sLobContent := FORABlob.AsWideString; // here not so much ?
==== snip ====
I'm probaly missing something obvious,
can anybody help?
Thanks,
Michael