How to use "Compare by contents" highlight effect?
Moderators: Hacker, petermad, Stefan2, white
How to use "Compare by contents" highlight effect?
I found the picture on TC website, but I don't know how to shown different words highlight effect as below?
http://www.ghisler.com/screenshots/en/07.html
For example this is what I want:
Left: write_header($lang);
Right: write_header($lang_id);
Actual in TC 8.x, it will be hard to find out the difference.
Left: write_header($lang);
Right: write_header($lang_id);
http://www.ghisler.com/screenshots/en/07.html
For example this is what I want:
Left: write_header($lang);
Right: write_header($lang_id);
Actual in TC 8.x, it will be hard to find out the difference.
Left: write_header($lang);
Right: write_header($lang_id);
What ?!
I had used this function for long time, and I always get the wrong results due to Notepad default is ANSI.
After test,
1. If Notepad save two files encoding as ANSI,
TC will compare them with ANSI => No good
2. If Notepad save two files encoding as Unicode,
TC will compare them with Unicode (UTF-16) => OK
3. If Notepad save two files encoding as Unicode big endian,
TC will compare them with Unicode MacOS => OK
4. If Notepad save two files encoding as UTF-8,
TC will compare them with UTF-8 => OK
Is this a problem bug? Because I also test the other tool, it can compare them with ANSI and get the correct results.
I had used this function for long time, and I always get the wrong results due to Notepad default is ANSI.
After test,
1. If Notepad save two files encoding as ANSI,
TC will compare them with ANSI => No good
2. If Notepad save two files encoding as Unicode,
TC will compare them with Unicode (UTF-16) => OK
3. If Notepad save two files encoding as Unicode big endian,
TC will compare them with Unicode MacOS => OK
4. If Notepad save two files encoding as UTF-8,
TC will compare them with UTF-8 => OK
Is this a problem bug? Because I also test the other tool, it can compare them with ANSI and get the correct results.

ANSI & UNICODE files as following, write by Notepad, and encode by TC.
ANSI File 1
Code: Select all
MIME-Version: 1.0
Content-Type: application/octet-stream; name="1-1.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="1-1.txt"
d3JpdGVfaGVhZGVyKCRsYW5nX2lkKTsg
Code: Select all
MIME-Version: 1.0
Content-Type: application/octet-stream; name="1-2.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="1-2.txt"
d3JpdGVfaGVhZGVyKCRsYW5nKTsg
UNICODE File 1
Code: Select all
MIME-Version: 1.0
Content-Type: application/octet-stream; name="2-1.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="2-1.txt"
//53AHIAaQB0AGUAXwBoAGUAYQBkAGUAcgAoACQAbABhAG4AZwBfAGkAZAApADsAIAA=
Code: Select all
MIME-Version: 1.0
Content-Type: application/octet-stream; name="2-2.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="2-2.txt"
//53AHIAaQB0AGUAXwBoAGUAYQBkAGUAcgAoACQAbABhAG4AZwApADsAIAA=
Both pairs of files compare fine heresky66 wrote:Notepad is not good enough, but it is my old friend, since 199?
ANSI & UNICODE files as following, write by Notepad, and encode by TC.
ANSI File 1ANSI File 2Code: Select all
MIME-Version: 1.0 Content-Type: application/octet-stream; name="1-1.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="1-1.txt" d3JpdGVfaGVhZGVyKCRsYW5nX2lkKTsg
---------------------------------------------------------Code: Select all
MIME-Version: 1.0 Content-Type: application/octet-stream; name="1-2.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="1-2.txt" d3JpdGVfaGVhZGVyKCRsYW5nKTsg
UNICODE File 1UNICODE File 2Code: Select all
MIME-Version: 1.0 Content-Type: application/octet-stream; name="2-1.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="2-1.txt" //53AHIAaQB0AGUAXwBoAGUAYQBkAGUAcgAoACQAbABhAG4AZwBfAGkAZAApADsAIAA=
Code: Select all
MIME-Version: 1.0 Content-Type: application/octet-stream; name="2-2.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="2-2.txt" //53AHIAaQB0AGUAXwBoAGUAYQBkAGUAcgAoACQAbABhAG4AZwApADsAIAA=
Here the ansi files 1-1.txt and 1-2.txt provided by sky66 compares like this:
Left (1-1.txt): write_header($lang_id);
Right (1-2.txt): write_header($lang);
which is the same as the unicode files - so I cannot confirm the bug.
Left (1-1.txt): write_header($lang_id);
Right (1-2.txt): write_header($lang);
which is the same as the unicode files - so I cannot confirm the bug.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
After test with different computer & OS. (Update results)
1. English Windows XP + TC 8.5(ENG) compare with ANSI => OK
2. English Windows XP + WCMD 4.0(ENG) compare with default => OK
3. English Windows XP and change "non-Unicode programs" in Control Panel(Regional and Language options) to "Chinese(TW)"+ TC 8.5(ENG) compare with ANSI => NG
4. Chinese Windows XP + TC 8.5(ENG) compare with ANSI => NG
5. Chinese Windows XP + WCMD 4.0(ENG) compare with default => NG
6. Chinese Windows XP and change "non-Unicode programs" in Control Panel to "English(US)"+ TC 8.5(ENG) compare with ANSI => OK
7. Chinese Windows 7 + TC 8.5(ENG) compare with ANSI => NG
8. Chinese Windows 7 + WCMD 4.0(ENG) compare with default => NG
9. Chinese Windows 7 and change "non-Unicode programs" in Control Panel to "English(US)" + TC 8.5(ENG) compare with ANSI => OK
Chinese Windows screen
http://thumbsnap.com/w2VbjC3F
English Windows screen
http://thumbsnap.com/sdvzHXpq
1. English Windows XP + TC 8.5(ENG) compare with ANSI => OK
2. English Windows XP + WCMD 4.0(ENG) compare with default => OK
3. English Windows XP and change "non-Unicode programs" in Control Panel(Regional and Language options) to "Chinese(TW)"+ TC 8.5(ENG) compare with ANSI => NG
4. Chinese Windows XP + TC 8.5(ENG) compare with ANSI => NG
5. Chinese Windows XP + WCMD 4.0(ENG) compare with default => NG
6. Chinese Windows XP and change "non-Unicode programs" in Control Panel to "English(US)"+ TC 8.5(ENG) compare with ANSI => OK
7. Chinese Windows 7 + TC 8.5(ENG) compare with ANSI => NG
8. Chinese Windows 7 + WCMD 4.0(ENG) compare with default => NG
9. Chinese Windows 7 and change "non-Unicode programs" in Control Panel to "English(US)" + TC 8.5(ENG) compare with ANSI => OK
Chinese Windows screen
http://thumbsnap.com/w2VbjC3F
English Windows screen
http://thumbsnap.com/sdvzHXpq
I can confirm this with Danish Windows XP and "Kinesisk "Taiwan" set up for non-unicode programs.3. English Windows XP and change "non-Unicode programs" in Control Panel(Regional and Language options) to "Chinese(TW)"+ TC 8.5(ENG) compare with ANSI => NG
The test file compare like this:
Left (1-1.txt): write_header($lang_id);
Right (1-2.txt): write_header($lang);
I also tried to add a second line to the files to see if it was only present in one line files, but it still compares both lines wrongly.
Apparantly an old bug - testet it with TC 6.54, 7.04 and 8.01 - and they all have it.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It's not a bug, TC just doesn't support by character selection in multi-byte languages.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com