wincmd.ini encoding issue?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Profane0360
Junior Member
Junior Member
Posts: 37
Joined: 2023-08-31, 20:08 UTC

wincmd.ini encoding issue?

Post by *Profane0360 »

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!
#155067 Personal licence (March 2007)
User avatar
Dalai
Power Member
Power Member
Posts: 9945
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: wincmd.ini encoding issue?

Post by *Dalai »

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
Profane0360
Junior Member
Junior Member
Posts: 37
Joined: 2023-08-31, 20:08 UTC

Re: wincmd.ini encoding issue?

Post by *Profane0360 »

Thank you. My files (that were not read correctly) got saved as UTF8 with BOM.
#155067 Personal licence (March 2007)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: wincmd.ini encoding issue?

Post by *ghisler(Author) »

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
Post Reply