It's all about the answers!

Ask a question

Encoding settings for the windows shell


Natsumi Yokoyama (209387101) | asked Oct 01 '13, 12:05 a.m.
retagged Nov 22 '13, 12:42 p.m. by David Lafreniere (4.8k7)

Hello,

How to set encoding via the RTC Windows Shell ? When I share Java projects via Windows Shell, the encoding becomes "MS932". I want to set encoding as UTF-8, but I can not find the operation to do this.

I need the way to set encoding at once via the RTC Windows Shell.

Thank you in advance.

Natsumi


Comments
Donald Nong commented Oct 01 '13, 9:55 p.m.

Not quite sure what it means "share Java projects via Windows Shell". Can you please elaborate?
Java projects have their own encoding if you choose so. In the project properties page, set Text File Encoding to "Other:UTF-8".

Accepted answer


permanent link
Simon Eickel (1.1k75457) | answered Oct 11 '13, 11:31 a.m.
Hi Natsumi,

the encoding cannot be changed using the Windows Explorer. This is by design.
What you can change is the e.g. MIME Type. This can be done using the properties windows since 4.0.3:


For changing the encoding there is a short discussion at this workitem:
RTC Shell should be able to handle with encoding "UTF-8 without BOM"

Comment 26 by Tim Mok:
"The issue here is the sharing manager is determining that the encoding should be the same as the platform's default. Windows uses CP1252 as its default and it cannot handle this UTF-8 encoded file. There's no option in the Shell integration to override the encoding. Eclipse doesn't have this issue because the sharing manager defers to Eclipse for the encoding.

What we need here is for the clients relying on scmtools to provide a way for users to specify an encoding. Of course, we also would have to provide that API through scmtools."


Hope this helps,
Simon
Natsumi Yokoyama selected this answer as the correct answer

Comments
Natsumi Yokoyama commented Oct 21 '13, 10:39 p.m. | edited Oct 21 '13, 10:39 p.m.

Hi, Simon

Thank you for your answer. It is helpful for me.

Natsumi 

Your answer


Register or 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.