Page 1 of 1

VS 2017 BOM ISSUES

PostPosted: February 28th, 2017, 10:19 am
by davidbcn
Using Visual Studio 2017 RC, every time I edit a PHP file, it automatically adds the UTF-8 BOM to the file.

Looks like the PHP settings to "force" BOM removal are not working.

Re: VS 2017 BOM ISSUES

PostPosted: March 13th, 2017, 3:11 pm
by Miloslav Beno
Hello David,

Could you confirm the issue in VS2017 release? I've just tried it with success.

Thanks,

Re: VS 2017 BOM ISSUES

PostPosted: March 20th, 2017, 4:43 pm
by WopsS
Hello Miloslav,

I have this problem too. I'm using VS 2017 build 26228.9.

What I did:
  • Repair VS 2017.
  • Reinstall PHP Tools.
  • Change the settings.

Re: VS 2017 BOM ISSUES

PostPosted: March 28th, 2017, 2:41 pm
by Miloslav Beno
Hi guys,

We are still unable to replicate. Do you have some other extension which might interfer with this or file encoding was changed after the file was opened e.g. in separete process?

Or do you have .editorconfig file in your project? There is known issue with it https://developercommunity.visualstudio.com/content/problem/22922/editorconfig-support-interprets-charset-utf-8-as-u.html

Thanks!

Re: VS 2017 BOM ISSUES

PostPosted: April 1st, 2017, 2:18 am
by WopsS
Hello Miloslav,

No, I don't have other extensions nor .editorconfig.

Re: VS 2017 BOM ISSUES

PostPosted: April 3rd, 2017, 2:22 am
by WopsS
I checked my project's files again and I had .editorconfig in it, I remember it was deleted.