如何更改Rational Team Concert的“字符编码”属性 [英] How to change “Character Encoding” property of Rational Team Concert

查看:199
本文介绍了如何更改Rational Team Concert的“字符编码”属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse比较视图显示存储在RTC中的文件的四个属性:

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


  • 可执行

  • MIME类型

  • 行分隔符

  • 字符编码

  • Executable
  • MIME Type
  • Line Delimiter
  • Character Encoding

我知道如何使用Eclipse或Visual Studio客户端更改前三个,但是如何更改字符编码?

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"?

推荐答案

线程提示


要更改服务器端的文件编码,需要加载文件到Eclipse项目中,然后右键单击该文件并选择属性

属性,将文件编码设置为 UTF-8

然后,您需要对文件内容稍作更改,签入/从待定更改提交文件。

之后,如果从工作区或流打开存储库文件并检查其属性,您可以看到文件编码已更新。

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.

如果您使用Visual Studio客户端,则无法直接修改单个文件的属性。您需要 edit magic.properties 文件先更改客户端上的文件编码,然后修改文件并签入服务器端。

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:


文本编码不由源代码控制处理。但是客户端设置为解释文件。

对于Eclipse客户端,有用户可以为每种类型的文件设置的编码的首选项。 Eclipse还可以设置每个项目的编码。因此,您在GUI中所做的更改不会与源代码管理共享。

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.

这篇关于如何更改Rational Team Concert的“字符编码”属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆