Broken comments encoding in 4.2.1

Support for our DiffMerge utility.

Moderator: SourceGear


Posts: 2
Joined: Mon Nov 16, 2015 2:44 am
PostPosted: Mon Nov 16, 2015 2:49 am
Hello,
Russian comments in .m files created by XCode are being shown broken like:
//–ї—Г–љ–љ—Л–є –і–µ–љ—М - –ї–µ–є–±–ї (–Ф–µ–љ—М)

Posts: 3471
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
PostPosted: 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

Posts: 2
Joined: Mon Nov 16, 2015 2:44 am
PostPosted: 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.

Posts: 3471
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
PostPosted: Wed Nov 18, 2015 8:37 am
Thank you for feedback. I'm glad that solved the problem.
Jeff Clausius
SourceGear

Return to Support (DiffMerge)

Who is online

Users browsing this forum: No registered users and 1 guest

cron