NetBeans PHP - How to enable UTF8 without specification?

I use NetBeans for PHP and I am having trouble saving my sources. My code saves the BOM or sth signatures, and when I open my pages in the browser there are &$65279 and the page &$65279 not display correctly.

I edit all files in Notepad ++ and save using “UTF-8 without specification” and it works, but I want to save files correctly in NetBeans without using Notepad ++.

Adding -J-Dfile.encoding=UTF8 to the configuration file also does not work.

+5
source share

Source: https://habr.com/ru/post/1234856/


All Articles