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 by content default format UTF8

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
jom
Junior Member
Junior Member


Joined: 16 Jun 2007
Posts: 14

PostPosted: Sun Oct 11, 2009 12:55 pm    Post subject: Compare by content default format UTF8 Reply with quote

I compare UTF8 html files a lot of the time, and TC defaults to ansi format, (probably because there is no UTF-8 BOM signature in my files).

There is a menu to change the compare to UTF-8, but it is very tedious to have to select this option each time I want to compare two files.

Is there a simple option to set the default compare format for when TC does not recognize the file format? So that instead of defaulting to ansi, I could tell it to default to UTF-8 instead? This would save me a lot of time.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Tue Oct 13, 2009 1:27 pm    Post subject: Reply with quote

Unfortunately there is no simple solution. You could use a scripting tool to make this change in the dialog with a single keypress. I'm open to suggestions how to solve this in TC 8.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jom
Junior Member
Junior Member


Joined: 16 Jun 2007
Posts: 14

PostPosted: Wed Oct 14, 2009 12:29 pm    Post subject: Reply with quote

When TC first finds a text file format it doesnt recognize, it defaults to ANSI so I manually change the filetype to UTF8 via the "Choose Encoding" dialog.

A very simple solution is for TC to "remember" this selection in the "Choose Encoding" dialog.

Next time TC finds a text file it doesn't recognize, instead of defaulting to ANSI, it used the option I previously selected in the "Choose Encoding" dialog.

In other words I only need to tell TC once in a session that my files are UTF8, (and not repeatedly every time I compare a new file).

Another solution would be to add a setting to wincmd.ini, for example:
AssumedFileFormatWhenUnrecognised = UTF8

Instead of defaulting to ANSI, it would default to UTF8
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


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

PostPosted: Thu Oct 15, 2009 12:03 am    Post subject: Reply with quote

I think better way suggested here: http://www.ghisler.ch/board/viewtopic.php?t=24222
_________________
VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo…
Back to top
View user's profile Send private message Send e-mail
jom
Junior Member
Junior Member


Joined: 16 Jun 2007
Posts: 14

PostPosted: Thu Oct 15, 2009 1:58 am    Post subject: Reply with quote

MVV wrote:
I think better way suggested here: http://www.ghisler.ch/board/viewtopic.php?t=24222


Sure it would be nice to have better detection too. But what when detection fails? This is what I am talking about.

The procedure for manually selecting encoding format is very tedious, because you have to do it each time for each new file.

This could be improved with a simple mod, so you only have to select the format once, instead of every time.
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


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

PostPosted: Thu Oct 15, 2009 2:09 am    Post subject: Reply with quote

jom wrote:
Sure it would be nice to have better detection too. But what when detection fails? This is what I am talking about.

The procedure for manually selecting encoding format is very tedious, because you have to do it each time for each new file.

Good UTF-8 detection DLL won't fails if it is written for your codepage. E.g. for Russian letters UTF-8 contains pairs of characters that are impossible in Russian.

TC compare tool allows to select TWO compare encodings - one for each file. So what one should remember TC if they are not the same?
_________________
VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo…
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (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