0
votes

We have a installation of TFS 2015 on premise here and we are having a issue with new files created via web browser, all new files are created with UTF-8 encoding and generating this characters ���� in the code viewer.

the problem is solved while setting the enconding to 1252 via Visual Studio / Source Explorer.

Right click on the file -> advanced > properties -> general -> set encoding

How do i set the default encoding for new files created via browser in TFS 2015 online (on premise)?

[EDIT] Step-by-step Open Visual Studio Team Foundation Server 2015 Select Team Project, at the team project page, go to "Code", click at the "..." , "Add Files" (like the image below).

I have the issue if i have characters like "ã", ,"õ", "ç", "á", etc.

Img1 - Creating file

1
Which browser are you using? I tested on my side but cannot repro this issue. Could you please share the steps to reproduce the issue for troubleshoot? also provide the specific characters/strings if possible.Andy Li-MSFT
@AndyLi-MSFT Open Visual Studio Team Foundation Server 2015, Select Team Project, at the team project page, go to "Code", click at the "..." and "Add Files" (like the image link on the post). I have the issue if i have characters like "ã", ,"õ", "ç", "á", etc.fabio draschi morciani

1 Answers

0
votes

Whatever, you can Configure Version Control File Encoding via Source Control Explorer in Visual Studio as you did.

However, you can try to enable Auto-Select option ( View > Encoding > Auto-Select.) if you are using IE. (The default settings in Internet Explorer 11 : Unicode (UTF-8) and Left-to-right document.). You can also select other language encoding, go to View > Encoding > More. Select the language encoding, Then restart IE. See Auto-select language encoding setting in Internet Explorer for details.

For Chrome browser, you can try changing the encoding via the extension Set Character Encoding


UPDATE:

I tested with the characters you provided with UTF-8 encoding, they displayed well, no garbage characters.

Please check if this article helps: Checking HTTP Headers

enter image description here