I launch a PHP script from Windows command prompt, redirecting the stdout and stderr to two files. If the PHP script outputs accented characters, they will result in strange symbols in the two files mentioned above.
How to set correct chaset output when redirecting output to files?
I launch the script using:
C:\>php myscript.php 2>stderr.log 1>stdout.log