Hello everybody,
When I open a file, it is using different encoding (https://ibb.co/3YL4ZK6) than I would like to (https://ibb.co/BLtK8JV).
I always have to press 7 after opening it to change it to UTF.
Is there any way to save settings for encoding?
I did try to change it then go to Lister/Options/Save position AND also Total Commander/Configuration/Save settings - neither of those work.
When I open Lister/Options/Configure.../General - Display at startup and Font at at startup are both to autodetect.
Thanks for reply in advance.
Lister does not remember changed encoding
Moderators: Hacker, petermad, Stefan2, white
Re: Lister does not remember changed encoding
2Gorazd
TC automatically detects the file format, but that does not work for UTF-8 files when.
1. You have saved the file as UTF-8 without BOM (Byte Order Mark)
2. AND there is only 1 line in your file.
Unfortunately newer Notepad versions in Windows 10 and 11 does not save UTF-8 files with BOM by default - you have to choose that manually under "Encoding", when you save the file in Notepad.
If it is possible, just add an empty line to your UTF-8 files, then TC will detect them correctly both with and without BOM.
You can change the default encoding to UTF8 with BOM in Windows' Registry:
See also: https://www.ghisler.ch/board/viewtopic.php?p=429401#p429401
TC automatically detects the file format, but that does not work for UTF-8 files when.
1. You have saved the file as UTF-8 without BOM (Byte Order Mark)
2. AND there is only 1 line in your file.
Unfortunately newer Notepad versions in Windows 10 and 11 does not save UTF-8 files with BOM by default - you have to choose that manually under "Encoding", when you save the file in Notepad.
If it is possible, just add an empty line to your UTF-8 files, then TC will detect them correctly both with and without BOM.
You can change the default encoding to UTF8 with BOM in Windows' Registry:
Code: Select all
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Notepad]
"iDefaultEncoding"=dword:00000004
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Lister does not remember changed encoding
Oh my goodness, that is the weirdest shortcoming I saw.
Thanks for clarification.
Thanks for clarification.