TFS/Eclipse/Selenium: When I import project from T

2019-08-20 19:19发布

I have a project that is exported to TFS using Eclipse TFS plug-in when I re import the the project from TFS to eclipse into another machine it will not take the UFT8 encoding.

Note: My eclipse is configured to have UFT8 encoding from the text editor

2条回答
Juvenile、少年°
2楼-- · 2019-08-20 19:46

You can follow below steps to set the default file encoding in Eclipse:

  • Window > Preferences > General > Content Types, set UTF-8 as the default encoding for all content types.
  • Window > Preferences > General > Workspace, set "Text file encoding" to "Other : UTF-8".
  • You can also set the default encoding in eclipse.ini: Open eclipse.ini in your eclipse home directory --> put the line -Dfile.encoding=UTF-8 at the end of the file --> Save

Then import the project again.

For the projects which already imported, you can right click the Project --> Properties and select Resource on the left side menu. You can now change the Text-file encoding to whatever you wish.

This article for your reference : Unicode/UTF-8 in your Eclipse Java projects

enter image description here

查看更多
冷血范
3楼-- · 2019-08-20 19:53

Before you import your project from TFS to eciplse, you have to run one program using UF8 encoding after that you can import your project from TFS

查看更多
登录 后发表回答