This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compare plugion for Unicode-ANSI compare

 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
Nux
Junior Member
Junior Member


Joined: 19 Apr 2009
Posts: 35

PostPosted: Tue May 30, 2017 9:40 am    Post subject: Compare plugion for Unicode-ANSI compare Reply with quote

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)?
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2511
Location: Germany

PostPosted: Tue May 30, 2017 10:04 am    Post subject: Reply with quote

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 10 x64 Creators Update Build 15063.483
TC 9.0a x64 and x86
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7811
Location: Russian Federation

PostPosted: Tue May 30, 2017 1:27 pm    Post subject: Reply with quote

Nux,
Take a look onto sources of sample WDX TC plugin, especially on its ContentCompareFiles function. Here you can find WDX interface reference.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
milo1012
Power Member
Power Member


Joined: 02 Feb 2012
Posts: 1023

PostPosted: Tue May 30, 2017 1:33 pm    Post subject: Re: Compare plugion for Unicode-ANSI compare Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Nux
Junior Member
Junior Member


Joined: 19 Apr 2009
Posts: 35

PostPosted: Tue May 30, 2017 4:13 pm    Post subject: Re: Compare plugion for Unicode-ANSI compare Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group