Compare plugion for Unicode-ANSI compare

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Nux
Junior Member
Junior Member
Posts: 40
Joined: 2009-04-19, 08:05 UTC

Compare plugion for Unicode-ANSI compare

Post by *Nux »

Is there a plugin that would convert all files to e.g. Unicode and then compare them? Similar to currently avialble `compare as text` plugin.

Where can I add sources for the plugin in question (to create a similar plugin)?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

TC already compares files in different encodings for me without any plugin.
I can even enter edit mode and merge content.
I have a mix of Win ANSI and UTF files.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Nux,
Take a look onto sources of sample WDX TC plugin, especially on its ContentCompareFiles function. Here you can find WDX interface reference.
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Re: Compare plugion for Unicode-ANSI compare

Post by *milo1012 »

2Nux
The only plug-in with such functionality I'm aware of is my own PCREsearch.
The default config file already comes with two fields field that will transparently compare Unicode and non-Unicode files, so you can use it in TC's file sync tool, just like the "compare as text" internal plug-in.
There are limitations, though, which I covered in the plug-ins's readme file.
TC plugins: PCREsearch and RegXtract
Nux
Junior Member
Junior Member
Posts: 40
Joined: 2009-04-19, 08:05 UTC

Re: Compare plugion for Unicode-ANSI compare

Post by *Nux »

milo1012 wrote:2Nux
The only plug-in with such functionality I'm aware of is my own PCREsearch.
The default config file already comes with two fields field that will transparently compare Unicode and non-Unicode files, so you can use it in TC's file sync tool, just like the "compare as text" internal plug-in.
There are limitations, though, which I covered in the plug-ins's readme file.
This works great. Thanks!
Post Reply