Broken comments encoding in 4.2.1

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
schmidt9
Posts: 2
Joined: Mon Nov 16, 2015 2:44 am

Broken comments encoding in 4.2.1

Post by schmidt9 » Mon Nov 16, 2015 2:49 am

Hello,
Russian comments in .m files created by XCode are being shown broken like:
//–ї—Г–љ–љ—Л–є –і–µ–љ—М - –ї–µ–є–±–ї (–Ф–µ–љ—М)

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Broken comments encoding in 4.2.1

Post by jclausius » Tue Nov 17, 2015 8:38 am

This is just a guess, but you may want to look at the DiffMerge options.

Under File Window -> Rulesets, create a new Ruleset for Xcode or .m files, assuming one does not already exist.

On the new Ruleset properties, enter the name, and file extensions (separated by spaces). For Character Encodings, see if you can find one that properly displays the encoding of your file.

Save the Ruleset, and retry a diff to see if the output is displayed correctly.

Note, there is a 'Default' Ruleset as well, so if most of your files are using the same code page, you can change the character encodings for those too.
Jeff Clausius
SourceGear

schmidt9
Posts: 2
Joined: Mon Nov 16, 2015 2:44 am

Re: Broken comments encoding in 4.2.1

Post by schmidt9 » Wed Nov 18, 2015 8:32 am

Thanks, I edited Ruleset C/C++/C# and added m extension there. Than I changed encoding to UTF-8 and had to change font too (default Courier does not have Russian chars, the comments were shown with another one).
Now it works, thanks.
Maybe for the future you could change this Ruleset to use utf? Western European encoding supports only English.

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Broken comments encoding in 4.2.1

Post by jclausius » Wed Nov 18, 2015 8:37 am

Thank you for feedback. I'm glad that solved the problem.
Jeff Clausius
SourceGear

Post Reply