vclob & unicode
Posted: Fri 26 Jun 2009 16:55
Hi,
I am using a older version of odac 5.8 and have come across a problem i hope someone can help with. I am posting to an oracle stored procedure with a clob that can contain some unicode characters. I can see the value of the vclob has changed after i run loadfromfile eg:
File contains=Jak Anioła głos
VClob contains=JAK ANIOÅ'#$81'A GÅ'#$81'OS
Is there anyway around this - do i need to encode the data or do i need to look at the latest version of odac?
thanks,
jp
ps. Here is my code just in case i've made a mistake:
with sp_Post do
begin
vClob := TOraLob.Create(dmIAPSNew.oraIAPS.OCISvcCtx);
vClob.CreateTemporary(ltClob);
vClob.LoadFromFile(ExtractFilePath(ParamStr(0)) + 'myfile.XML');
vClob.WriteLob;
ParamByName('MYDOC').AsOraClob := vClob;
ParamByName('DEBUGMODE').Clear;
ParamByName('OUTPUT').Clear;
Execute;
end;
I am using a older version of odac 5.8 and have come across a problem i hope someone can help with. I am posting to an oracle stored procedure with a clob that can contain some unicode characters. I can see the value of the vclob has changed after i run loadfromfile eg:
File contains=Jak Anioła głos
VClob contains=JAK ANIOÅ'#$81'A GÅ'#$81'OS
Is there anyway around this - do i need to encode the data or do i need to look at the latest version of odac?
thanks,
jp
ps. Here is my code just in case i've made a mistake:
with sp_Post do
begin
vClob := TOraLob.Create(dmIAPSNew.oraIAPS.OCISvcCtx);
vClob.CreateTemporary(ltClob);
vClob.LoadFromFile(ExtractFilePath(ParamStr(0)) + 'myfile.XML');
vClob.WriteLob;
ParamByName('MYDOC').AsOraClob := vClob;
ParamByName('DEBUGMODE').Clear;
ParamByName('OUTPUT').Clear;
Execute;
end;