peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core

Home Page:https://www.peachpie.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Special characters cannot be recognized

xiangyi-wang opened this issue · comments

I'm not sure if this is a compiler issue or a VS setup issue
this is the symfony\polyfill-iconv\Resources\charset\from.*.php
image
image

Thank you for reporting the issue.

The files are probably in a local encoding(s), not UTF. The compiler (parser) tries to detect the encoding but unsuccessfully; so it results in the wrong tokens.

I would recommend converting the files to UTF-8 (with BOM), or specifying the CodePage property.

Thank you for reporting the issue.

The files are probably in a local encoding(s), not UTF. The compiler (parser) tries to detect the encoding but unsuccessfully; so it results in the wrong tokens.

I would recommend converting the files to UTF-8 (with BOM), or specifying the CodePage property.

Thank you! It's my foolish. I have solved it.