I have a simple script that executes something like:
exec("x.bat", $array);
x.bat returns some special Latin characters, like áéí`'ñ, etc. They are completely garbled in the output array. I've tried setting both the page charset to Windows-1252 and sending "chcp 850" to the cmd before x.bat, but no matter, it always comes out garbled.
Any ideas?