[unixODBC-support] Charset differs depending where I start the PHP script

Nick Gorham nick at lurcher.org
Mon Sep 21 13:34:31 BST 2009

Stefan.Immel at stroeher.de wrote:
> I use unixODBC in combination with the iSeries Access for Linux ODBC 
> driver to connect from a debian machine to an iSeries.
> I wrote a PHP script that fetches some data and everything works great 
> as long as I call the script the "normal" way via apache server and 
> browser. I need to call the script via an cronjob and so I tried to 
> issue an "phph script" command on the commandline which resulted in a 
> wrong chrset in my data. All special characters (umlauts) are 
> translated wrong and since I plan to create an Excel file this will 
> result in even more problems.
> Anybody with a solution to this problem?
I guess first thing to check is the LANG setting under both conditions.


More information about the unixODBC-support mailing list