The attached modification to DBD::ODBC 0.28 enables
conversion of SQL (assumed to be in UTF-8) to UTF-16 and conversion of UTF-16
data returned from SQL Server to UTF-8. This was tested only on:
-- Windows 2000 Advanced Server sp2
-- SQL Server 2000
Enterprise
-- Perl 5.005_03 (ActiveState 522b) -- DBI 1.14 -- DBD::ODBC 0.28
I did not program any way to disable this conversion because I
haven't done much Perl or XS programming and I don't have time at the moment to
figure out how everything fits together. The conversion routines were lifted
from http://www.unicode.org/Public/PROGRAMS/CVTUTF/
Naveen.
|
ConvertUTF.h
Description: Binary data
ConvertUTF.c
Description: Binary data
dbdimp.diff
Description: Binary data