Page 1 of 1

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

Posted: 2020-08-25, 17:08 UTC
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.

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

Posted: 2020-08-25, 17:17 UTC
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

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

Posted: 2020-08-25, 18:50 UTC
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.

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

Posted: 2020-08-25, 18:55 UTC
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...)

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

Posted: 2020-08-25, 19:24 UTC
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