Hello,
I run windows 11. I edited my wincmd.ini file with notepad and this had a strange side-effect. Various entries are not read anymore. I understood notepad messed with the file encoding. I normally use notepad++ within Total Commander.
What encoding should I save my configuration files to, to stay safe? wincmd.ini, wcx-ftp.ini, tcignore.txt and all files from redirectsection lines?
Also, may I do redirectsection to a file ending in .txt or I have to stay with ending in .ini?
Thank you!
wincmd.ini encoding issue?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 37
- Joined: 2023-08-31, 20:08 UTC
wincmd.ini encoding issue?
#155067 Personal licence (March 2007)
Re: wincmd.ini encoding issue?
The Windows API can only process INI files with ANSI and UTF-16 (LE with BOM) encodings. How the redirected files are named is more or less irrelevant, but since they're are still INI files I'd stick with the .ini extension.
Last edited by Dalai on 2024-10-12, 19:36 UTC, edited 1 time in total.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
-
- Junior Member
- Posts: 37
- Joined: 2023-08-31, 20:08 UTC
Re: wincmd.ini encoding issue?
Thank you. My files (that were not read correctly) got saved as UTF8 with BOM.
#155067 Personal licence (March 2007)
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: wincmd.ini encoding issue?
Unfortunately Windows 11 notepad sometimes saves a file as UTF-8 even if the loaded file had non-utf-8 characters in them (clearly a bug in notepad). To prevent this, save the file as UTF-16 LE.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com