PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: Setting charset with ct_config()
Date: Sep 25 1997 10:59PM

Mark Conover wrote:
> 
> Hello,
> 
> This week has been exciting since installing sybperl on my linux box.
> 
> Question:
> 
> I would like to change the character set before doing the ct_connect(),
> so that I avoid:
> 
>      "Message String: Cannot find the requested character set in
> Syscharsets:         name = 'iso_1'"
> 
> The server to which I am connecting has the following char sets
> available:
>  csid id
> name
>  ---- ---
> ------------------------------
>     0   0
> ascii_8
>     0   4
> roman8
>     4  50 bin_roman8
> 
> >From what I have managed to learn on the web, I need to invoke
> ct_config,
> to CS_GET on a property.  Not sure which one.  CS_??_CHARSET.
> 
> Thank you for any assistance.

After some spelunking it looks like we need a call to cs_locale()
to be able to set the character set, and cs_locale() is not
implemented in sybperl (yet).

Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler