develooper Front page | perl.dbi.users | Postings from October 2001

odbc stripping multi-byte characters - help!

Thread Previous
From:
Nikko Odiseos
Date:
October 24, 2001 12:15
Subject:
odbc stripping multi-byte characters - help!
Message ID:
KMEMIOPCKANCOPNCNEPJCEHAFMAA.nodiseos@interwoven.com
How can I make calls to the odbc driver to tell it what encoding the client
is.  So when perl dbi runs it will make the connection, it knows already
what the content encoding is, and needs to make a call to the odbc driver
what to convert the data to so odbc does not default to the locale setting.
Basically I am tying to extract ntext and nvarchar unicode data from MS SQL
7 and 2000 using dbi but it is showing up as "????" - basically odbc is
stripping the multi-byte characters.   If I set the locale on my machine to
the appropriate locale it works, but I need my locale to remain US English,
not Korean, Japanese, etc.  On Oracle there is the NLS_Lang variable but SQL
Server always looks to the locale.  What can I do?

Thanks for your help!

Nikko


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About