Multi-Rename Tool, Rename with file names in external files

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Dali4u
Junior Member
Junior Member
Posts: 15
Joined: 2003-03-05, 14:37 UTC
Location: Passau

Multi-Rename Tool, Rename with file names in external files

Post by *Dali4u »

Hello,

use the multi-rename tool to change the names from multiple files.
In the dialog choose "Edit names..." to edit the new file names in and
external application like Notepad++.

The file with the filenames will be created by TC and read by Notepad++.
The filenames are read wrong when saved with UTF8 coding, e.g.
filenames with öä0ü or other characters will fail. Saving the file with
the filenames as ANSI will work, UTF8 not.
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Multi-Rename Tool, Rename with file names in external files

Post by *Dalai »

Which UTF-8 encoding exactly did you test with? Files can have a BOM (byte order mark), but they don't need to. TC probably only respects UTF-8 (or UTF-16 for that matter) when the file has a BOM.

In short: Try with "UTF-8" in Notepad++, not "UTF-8 without BOM".

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Re: Multi-Rename Tool, Rename with file names in external files

Post by *gdpr deleted 6 »

There is an easy way to avoid manual UTF-8 + BOM conversion in Notepad++ altogether, as far as the Mutli-Rename tool is concerned.

If you set

Code: Select all

RenameEditUnicode=1
in the [Configuration] section of TC's INI file (make sure your INI file won't end up with multiple RenameEditUnicode entries), TC's Multi-Rename tool will always save the file names text file in UCS-2/UTF-16 (including BOM). Notepad++ is able to read such a text file and will automatically save it again as UCS-2/UTF-16 (including BOM, too) without you needing to manually change or worry about the encoding or BOMs.
Last edited by gdpr deleted 6 on 2020-08-25, 19:06 UTC, edited 4 times in total.
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Re: Multi-Rename Tool, Rename with file names in external files

Post by *gdpr deleted 6 »

Dalai wrote: 2020-08-25, 17:17 UTC In short: Try with "UTF-8" in Notepad++, not "UTF-8 without BOM".
Small correction:

In Notepad++, the encoding "UTF-8" is without BOM.
To get UTF-8 with BOM, choose "UTF-8-BOM". :)

(That's in the English language version. I don't know if other Notepad++ localizations change the text of those menu entries, though...)
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Multi-Rename Tool, Rename with file names in external files

Post by *Dalai »

elgonzo wrote: 2020-08-25, 18:55 UTC
Dalai wrote: 2020-08-25, 17:17 UTC In short: Try with "UTF-8" in Notepad++, not "UTF-8 without BOM".
Small correction:

In Notepad++, the encoding "UTF-8" is without BOM.
To get UTF-8 with BOM, choose "UTF-8-BOM". :)
That's true for newer versions of Notepad++. I still use an older version 6.x (on purpose), where the items are labeled as I stated above.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply