Sybase: Charset conversion

Sebastian Podjasek <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Organization morenet.pl
Message-ID <[email protected]>
I'm trying to access Sybase DB from my Perl script and currently
I have some problems with FreeTDS characters conversion. From
what I've seen FreeTDS detects that server is using UCS-2LE and
tries to convert from it to UTF-8. As a result it produces some
strange "Chinese characters", but when I do convert that string
back to UCS-2LE, and then convert it as UCS-2BE (instead of
little endian) to UTF-8 - I get what I want.

Is it possible that server reports wrong encoding to me and
because of that FreeTDS is using wrong encoding?

Any help would be appreciated.

Kind Regards,
Sebastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.