Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Force files to be in UTF-8 Format for checking in the code

Can we Force files to be in UTF-8 Format for checking in the code, Can we set this thing at global/project level.

I know that we can do it manually at everybody's IDE general Preferences but i don't want o go through this process.

0 votes


Accepted answer

Permanent link

It looks like there is a precondition (Restrict Check-in Based on Specified MIME Types and Encodings) that you can set to restrict check-in of files to only those files that have a specific encoding. You can set the scope of the precondition to all components in the project area or to specific components. See Team process preconditions for Rational Team Concert source control for details.


Ken

Salman Shaikh selected this answer as the correct answer

1 vote

Comments

I am unable to find it in Version 5.0.2 and 6.0.2

This is planned to become available in 6.0.4. There was no check in extension point prior to 6.0.4.


2 other answers

Permanent link

RTC does not have the control of the file encoding. The encoding should be set in Eclipse IDE or on Eclipse project level.

You can follow http://stackoverflow.com/questions/36494326/setting-text-file-encoding-per-eclipse-project to set the encoding on Eclipse project level which will create a file ".settings/org.eclipse.core.resources.prefs". You can check-in and deliver the file so other users will have the same setting.

0 votes


Permanent link

Unless you wait for 6.0.4 and the availability of the check in operation you would have to prevent delivery similar to https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495
× 1,381
× 115

Question asked: Mar 24 '17, 10:55 a.m.

Question was seen: 3,206 times

Last updated: Apr 02 '17, 2:33 p.m.

Confirmation Cancel Confirm