Hi,
TS 6.7.1 SP1
Perl 5.8
I trying to insert unicode characters to a db through a SP call from a perl script.
I tried the SP call bellow and it inserted: КонÑ�ультационные уÑ�лугÐ
dbo.Mon_InsertDeployedContent 4 ,3 , '11122007153257871', 'Открытое письмо генеральному директору'
So I added N, see bellow and still inserted the same
dbo.Mon_InsertDeployedContent 4 ,3 , '11122007153257871', N'Открытое письмо генеральному директору'
However, when I run the first piece fo code in sql management studio, it inserts ?????????????????????, but when I run the other, with the N in front, it inserts the unicode correctly. So it might possibly be that I'm missing something when I call the SP from the perl scritp?
#Perl version of the SP call
if(!($conn->Sql("exec dbo.Mon_InsertDeployedContent $geoSiteId, $workareaId, '$contentId', '$title'))) {
debug("$dbgInfo", " SQL procedure executed successfully .\n");
} else {
callBackAndDie($task, 1, "SQL procedure failed.");
}
The other version is:
if(!($conn->Sql("exec dbo.Mon_InsertDeployedContent $geoSiteId, $workareaId, '$contentId', N'$title'))) {
debug("$dbgInfo", " SQL procedure executed successfully .\n");
} else {
callBackAndDie($task, 1, "SQL procedure failed.");
}
Any suggestions?
Thanks in advance.