How to change “Character Encoding” property of Rational Team Concert

半世苍凉 提交于 2019-12-23 02:56:12

问题


The Eclipse compare view shows four properties for files stored in RTC:

  • Executable
  • MIME Type
  • Line Delimiter
  • Character Encoding

I know how to change the first three of them using the Eclipse or the Visual Studio client, but how can I change the “Character Encoding”?


回答1:


This thread mentions:

To change the file's encoding on server side, you need to load the file into an Eclipse project, then right-click the file and select "Properties".
In the Properties, set the file encoding to "UTF-8".
Then you need to make slightly change on the file content, so you can check-in/deliver the file from Pending Changes.
After that if you open the repository files from the workspace or stream and check it properties, you can see the file encoding is updated.

If you are using Visual Studio client, there's no direct way to modify a single file's properties. You need to edit magic.properties file to change the file's encoding on client side first, then modify the file and check-in to server side.

Note, as mentioned in this thread:

Text encoding isn't handled by source control. It's however the client is set to interpret the file.
For Eclipse clients, there are preferences for the encoding that users can set for each type of file. Eclipse can also set the encoding per project. So the change you're making in the GUI isn't being shared with source control.



来源:https://stackoverflow.com/questions/31986471/how-to-change-character-encoding-property-of-rational-team-concert

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!