Unix Technical Forum

Perl DBI and Various Codepages

This is a discussion on Perl DBI and Various Codepages within the DB2 forums, part of the Database Server Software category; --> I'm accessing a db2/400 system via Perl DBI and the DBD: B2 module, but when I go to pull ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:32 PM
Dana Cordes
 
Posts: n/a
Default Perl DBI and Various Codepages

I'm accessing a db2/400 system via Perl DBI and the DBD:B2 module, but
when I go to pull data out of any table that's not codepage 37 I get an
error that looks like this:

"BD:B2::st execute failed: [IBM][CLI Driver][AS] SQL0332N There is no
available conversion for the source code page "937" to the target code page
"1252". Reason Code "1". SQLSTATE=57017"

I understand why this is happening, but not how to remedy the situation. I
cannot change the codepage for the tables because they are storing
multilingual data. Can anyone give me any advice on how I can work around
this problem?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 03:32 PM
Sherman Lau
 
Posts: n/a
Default Re: Perl DBI and Various Codepages

DB2 does not support connection between different language groups. 1252 is
Latin 1 and 937 is Traditional Chinese.

Can you change your client to Unicode? A Unicode client can connect to any
databases.

Sherman

"Dana Cordes" <dcordes@nhbb.com> wrote in message
news:1061221491.333495@nnrp1.phx1.gblx.net...
> I'm accessing a db2/400 system via Perl DBI and the DBD:B2 module, but
> when I go to pull data out of any table that's not codepage 37 I get an
> error that looks like this:
>
> "BD:B2::st execute failed: [IBM][CLI Driver][AS] SQL0332N There is no
> available conversion for the source code page "937" to the target code

page
> "1252". Reason Code "1". SQLSTATE=57017"
>
> I understand why this is happening, but not how to remedy the situation.

I
> cannot change the codepage for the tables because they are storing
> multilingual data. Can anyone give me any advice on how I can work around
> this problem?
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:58 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com