QCMDEXC and unicode
Posted: Mon Mar 03, 2014 11:03 pm
We have a number of PHP scripts called from RPGLE using QCMDEXC, passing parameters that PHP reads through the $_SERVER array. We use this when something is difficult to do in RPG, (e.g. json_decode). All works great, but now we have a requirement to pass unicode characters as parameters (e.g. Chinese). QCMDEXC is not happy about this, I suppose as its command string is defined as type "a".
Does anyone know a way of calling a PHP script from RPGLE passing a non-EBCDIC parameter? A work-around could be to send the parameters as an IFS file and then open and read this in the PHP. This would add extra overhead and would be messy as the files would need to be created/destroyed etc. If anyone knows a more graceful method it would be much appreciated.
Paul
Does anyone know a way of calling a PHP script from RPGLE passing a non-EBCDIC parameter? A work-around could be to send the parameters as an IFS file and then open and read this in the PHP. This would add extra overhead and would be messy as the files would need to be created/destroyed etc. If anyone knows a more graceful method it would be much appreciated.
Paul