Default value of "choose the text encoding type"

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
BeckYang
Junior Member
Junior Member
Posts: 29
Joined: 2006-04-02, 10:33 UTC

Default value of "choose the text encoding type"

Post by *BeckYang »

There is a button "ANSI <-> ANSI" in "Compare by Content" dialog.
Currently, I have to click it and choose UTF-8/UTF-8 every time when I compare lots of UTF-8 text files. So the text displayed in left/right side are changed as I want.

It would be great if "text encoding type" can be loaded from default value(Include the display the left/right side panel).
For saved the default value, I suggest to add a checkbox "Save as default"
in "Choose encoding" dialog. If we need to save it, we can check it and click OK button.

Thanks for your development.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The compare tool currently detects UTF-8 and UTF-16 only by the BOM (byte order marker) at the beginning of the file. Files without BOM are detected as ANSI text. Changing the default for all files would be easy to add, but probably not very useful. Any better ideas? Maybe some kind of improved detection?
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Changing the default for all files would be easy to add, but probably not very useful. Any better ideas? Maybe some kind of improved detection?
There has been a request to be able to set the default in the Slovak/Czech forum, too (if possible in addition to any improved detection routine).

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
BeckYang
Junior Member
Junior Member
Posts: 29
Joined: 2006-04-02, 10:33 UTC

Post by *BeckYang »

For me, most of the text file are UTF-8 or ASCII(windows system encoding). TC already support them good enough.
But I prefer to remove BOM in UTF-8 files. I got too many trouble when handle BOM text files. :(

For your reference, there is a C/C++/Java library named ICU which can detected charset.
http://userguide.icu-project.org/conversion/detection
Post Reply