"Pit" <pharrendorfam-soft.de> writes:
You probably mean latin1 or iso-8859-1 rather than ascii.> Hi Folks,
> I've a problem with Unicode and ODBC.
> I'm using Perl 5.8.4 Build 810 under Win32 and a Postgres-ODBC-Driver.
> When data like "äöüÄÖÜ" (the german signs) or the "°" stored into the
> database via ODBC, it will be stored as utf8.
> How to disable this, so that data will be stored as Ascii ??
It seems like your data has the utf8 flag turned on and the XS code
cannot handle the data correctly. To be sure, just check your strings
using the Dump() function from the Devel::Peek module. If this is the
case, then you can force the strings to iso-8859-1 by using the
encode() function in the Encode module.
Slaven Rezic - slaven <at> rezic <dot> de
Tk-AppMaster: a perl/Tk module launcher designed for handhelds