Multi-Rename Tool > Context menu icon > Edit names: an option to predefine temp list file encoding

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Multi-Rename Tool > Context menu icon > Edit names: an option to predefine temp list file encoding

Post by *beb »

Multi-Rename Tool > [Context menu icon] > Edit names: the temporary list file is always ANSI.
Each time I use this function (which I do a lot), I have to control the encoding to avoid data loss (filenames corruption).
Please make it configurable (ANSI, UTF-8, Unicode UTF-16 LE).
There are already good examples of how the Total Commander handles encodings for similar temporary list files:
%UL,%UF like %L and %F, but with UTF-8 Unicode list file (with byte order mark)
%WL,%WF like %L and %F, but with a UTF-16 Unicode list file (with byte order mark).
It would be great to have something like that for the in-title scenario.
It could be in GUI and/or in INI:

Code: Select all

MultiRenameToolEditEncoding=ANSI|UTF-8|UTF-16 LE
Thank you.

Edit: is always ANSI
Last edited by beb on 2025-03-30, 20:16 UTC, edited 4 times in total.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: Multi-Rename Tool > Context menu icon > Edit names: temp list file is always ANSI, please change that

Post by *Fla$her »

What kind of data loss are we talking about? If there are Unicode characters in the names, this list is saved in UTF-16.
Overquoting is evil! 👎
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Multi-Rename Tool > Context menu icon > Edit names: temp list file is always ANSI, please change that

Post by *Horst.Epp »

As Fla$her said, the temporary file is UTF-16.
You can also configure a different editor, if you don't like Notepad.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Multi-Rename Tool > Context menu icon > Edit names: temp list file is always ANSI, please change that

Post by *beb »

2Fla$her, 2Horst.Epp
Yes, you are right, it turns out the list is saved in UTF-16 when the Unicode character(s) is detected in the filename(s). Thanks.
Well, OK then, I'm changing my wording while the idea remains the same:
I would like to have an option to enforce a preferable encoding of my choice no matter what the filename might be, the same way it works in case of %UL, %WL.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Multi-Rename Tool > Context menu icon > Edit names: temp list file is always ANSI, please change that

Post by *Horst.Epp »

beb wrote: 2025-03-30, 09:39 UTC 2Fla$her, 2Horst.Epp
Yes, you are right, it turns out the list is saved in UTF-16 when the Unicode character(s) is detected in the filename(s). Thanks.
No, in my tests, there were no Unicode characters in the file names involved.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Multi-Rename Tool > Context menu icon > Edit names: an option to define temp list file encoding

Post by *beb »

2Horst.Epp
That's not the way it forks for me:
In my case, unless I pick up some weirdest Unicode characters from a Wikipedia page for the involved filenames, the temporary list file is always ANSI.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Post Reply