Inconmsistent encoding of filenames in TC

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
pugx
Junior Member
Junior Member
Posts: 2
Joined: 2023-02-16, 15:25 UTC

Inconmsistent encoding of filenames in TC

Post by *pugx »

Hi,

today I found that generated list of selected files has wrong characters, and original file name is somehow mangled.

(1) Left/Right Panel [OK]
(2) Generated List [WRONG]
(3) List view/Quick View for directory [WRONG]

(2) and (3) are behaving differently

I was able to get same result:
if I copy-paste name of file to Notepad++ with selected encoding Windows-1250 and then I just switched encoding to Windows-1252
without conversion I got same what is inside of generate list of files.
Also problem is, that information is "lost in translation", so just changing encoding of generated list will not help.

Installation: TC 10.52 is on Win10 with main language English (1252) and Secondary Slovak (1250)
test characters: ľ ž ( small L with accent and small Z with accent, in process L with accent will become just L)

In console file name is displayed always correctly no matter what codepage I choose (437 / Windows 1250 / Windows 1252)
pugx
Junior Member
Junior Member
Posts: 2
Joined: 2023-02-16, 15:25 UTC

Re: Inconmsistent encoding of filenames in TC

Post by *pugx »

Just to note, unicode lists like (%UL) are correct
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Inconmsistent encoding of filenames in TC

Post by *Horst.Epp »

There is no such problem if you use the correct UTF8 functions in TC.
The following button for example stores a list of all selected files into an txt file
with the right UTF8 encoding.

Code: Select all

TOTALCMD#BAR#DATA
%comspec% /c copy
"%UL" "%T\%B-0_SelectedFiles.txt"
C:\Tools\Wincmd\WCMICONS48.DLL,46
Selected file names to list in target

1
-1
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Inconmsistent encoding of filenames in TC

Post by *Horst.Epp »

pugx wrote: 2023-02-16, 16:45 UTC Just to note, unicode lists like (%UL) are correct
Of course they are correct.
Why do you think you don't need UTF8 here ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Post Reply