VS 2017 BOM ISSUES

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

VS 2017 BOM ISSUES

Postby davidbcn » February 28th, 2017, 10:19 am

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.
davidbcn
 
Posts: 87
Joined: September 10th, 2014, 3:07 am

Re: VS 2017 BOM ISSUES

Postby Miloslav Beno » March 13th, 2017, 3:11 pm

Hello David,

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

Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: VS 2017 BOM ISSUES

Postby WopsS » March 20th, 2017, 4:43 pm

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.
WopsS
 
Posts: 3
Joined: March 20th, 2017, 4:41 pm

Re: VS 2017 BOM ISSUES

Postby Miloslav Beno » March 28th, 2017, 2:41 pm

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!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: VS 2017 BOM ISSUES

Postby WopsS » April 1st, 2017, 2:18 am

Hello Miloslav,

No, I don't have other extensions nor .editorconfig.
WopsS
 
Posts: 3
Joined: March 20th, 2017, 4:41 pm

Re: VS 2017 BOM ISSUES

Postby WopsS » April 3rd, 2017, 2:22 am

I checked my project's files again and I had .editorconfig in it, I remember it was deleted.
WopsS
 
Posts: 3
Joined: March 20th, 2017, 4:41 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 28 guests

cron

User Control Panel

Login

Who is online

In total there are 28 users online :: 0 registered, 0 hidden and 28 guests (based on users active over the past 5 minutes)
Most users ever online was 170 on March 28th, 2024, 8:36 am

Users browsing this forum: No registered users and 28 guests