Viewing Issue Simple Details |
ID |
Category |
Type |
Reproducibility |
Date Submitted |
Last Update |
0000971 |
[In-Portal CMS] Data Management |
bug report |
always |
2011-01-25 03:40 |
2011-05-18 13:19 |
|
Reporter |
alex |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
open |
|
Status |
active |
|
|
|
|
Summary |
0000971: Function "fgetcsv" doesn't work with UTF-8 files from CRON |
Description |
Function "fgetcsv" doesn't work with UTF-8 files from CRON.
This happens, because it takes "LANG" environment variable into account, which is missing by default (like all environment), when cron scripts are executed.
http://www.php.net/fgetcsv - See notes section.
We can do "setenv" from kApplication::Init for case, when LANG could be missing. Not sure about PHP4, but this will work in PHP5 for sure. |
Additional Information |
If we will use "fgetcsv" function, then we must set proper environment variable, that should match to parsed file encoding before continuing.
This could affect CSV file import, when grid has non-english symbols in it. |