peachpie: CodePage ignored

We are trying Peachpie with an external project with sources encoded in iso-8859-1. The PHP application outputs files by concatenating strings defined in the source code with binary chars.

Example: $output = ‘áéíóú’ . chr(128);

We added <CodePage>iso-8859-1</CodePage> to the .msbuildproj file, but the original encoding is not respected (or maybe Peachpie is doing some other conversions).

Any way, the output is not as expected.

We attached a sample project. encoding-test.zip

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (20 by maintainers)

Most upvoted comments

Should we change Context.StringEncoding? Is there any way to change Context.StringEncoding from the PHP source?