Eclipse Encoding

I am trying to use eclipse UTF-8 encoding for polishing characters. Unfortunately, I still have a problem with the encoding. My settings:

Window-> Settings-> Debug Window-> Preferences-> Debug

Window-> Preferences-> Workspace Window-> Preferences-> Workspace

Window-> Settings-> PHP Content Type Window-> Preferences-> PHP Content Type

My php file:

Php file

File size:

File proporties

Final result:

Result in browser

Did I forget something?

+4
source share
1 answer

The eclipse browser probably just doesn't know which encoding to use, since you are not sending an HTTP header by specifying it.

Try sending the following HTTP header: Content-Type: text / html; encoding = UTF-8

Or use a real browser and explicitly set the encoding of the UTF-8 page.

+4
source

All Articles