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.
Default value of "choose the text encoding type"
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
Christian,
Roman
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).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?
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.
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
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