Page 1 of 1

Unicode characters support for plugins Diskdir

Posted: 2018-09-21, 00:59 UTC
by rmmaniac
it is possible add Unicode characters support for plugins Diskdir
Diskdir without updated since 2012 :cry: :cry: :cry:

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-21, 01:20 UTC
by Usher
There is already DiskDirW: http://totalcmd.net/plugring/diskdirw.html
…but it would be nice to have DiskDirExtendedW as well…

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-21, 02:17 UTC
by rmmaniac
thank
but this DiskDirW plugins pack Unicode characters appeared gibberish :?: :?: :?:

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-21, 14:27 UTC
by Usher
Could provide some examples and explain what exactly do you mean, please?

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-21, 15:01 UTC
by MVV
Usher wrote: 2018-09-21, 01:20 UTC …but it would be nice to have DiskDirExtendedW as well…
It would be great, but I'm afraid its author won't update it anymore.

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-21, 16:46 UTC
by Usher
MVV wrote: 2018-09-21, 15:01 UTCIt would be great, but I'm afraid its author won't update it anymore.
What about source code availability?

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-21, 17:08 UTC
by MVV
It seems that sources are available.

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-23, 01:59 UTC
by rmmaniac
for example my origine filename is -> 口才的奧義:說話高手的基本常識課.pdf
but after pack withDiskDirW .result is -> ????尼蝢抬?隤芾店擃???砍虜霅玨.pdf
Please Fix :cry: :cry: :cry:

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-23, 09:47 UTC
by Usher
It looks like a problem with fonts in your system. What OS and font do you use?
Do you have a problem with shorter name: 才的奧義說話高手的基本常識課.pdf as well?

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-24, 10:27 UTC
by browny
Usher wrote: 2018-09-23, 09:47 UTC It looks like a problem with fonts in your system.
No, it does not. The name is completely garbled.

I installed wcx_DiskDirW_1.1.2.zip in the latest Windows 10 32-bit, TC 9.21a.
Created a file with the name 口才的奧義:說話高手的基本常識課.pdf, and made a list file.
All file names in the list were correct.
Usher wrote: 2018-09-23, 09:47 UTC What OS and font do you use?
Also It should be asked how the list file was opened.
The list is written in UTF-8 without a BOM, but default Windows encoding is UTF-16LE.

Re: Unicode characters support for plugins Diskdir

Posted: 2018-09-24, 14:03 UTC
by Usher
browny wrote: 2018-09-24, 10:27 UTC Also It should be asked how the list file was opened.
You have NOT answered my questions, and now you have NOT named the software you use to display/edit the list file.
You don't know what may be important in this case so DO NOT IGNORE ANY DETAILS. Help us to help you, please, explain your problem using more words.
browny wrote: 2018-09-24, 10:27 UTC The list is written in UTF-8 without a BOM, but default Windows encoding is UTF-16LE.
And the list format uses tabs as field separators, so you should be warned twice…

1. It's obvious that the list should be viewed as archive in TC panel via proper plugin. You should either remove standard DiskDir plugin or use another file extension (lsw or ddw for example) for lists created by DiskDirW.

2. Both UTF-8 and UTF-16 are Unicode Transformation Formats. I suppose that the author of modified plugin used UTF-8 for backward compatibility - file names containing Latin letters only should be displayed properly also with standard DiskDir and DiskDirExtended. But if you find more plausible reasons to convert plugin to work with UTF-16, maybe someone will do the job in the future – the source code is available for both DiskDirW and DiskDirExtended plugins.

3. Unicode standard clearly states that text in UTF-8 does NOT need BOM. It should be displayed properly in ANY GOOD, modern, properly configured viewer/editor. For example, Lister in TC displays lists from DiskDirW properly.

4. If you don't want to damage the list, you should NOT use editor configured to replace tabs with spaces.

Re: Unicode characters support for plugins Diskdir

Posted: 2018-10-08, 15:13 UTC
by rmmaniac
my OS is windows xp sp3,TC v921a.
I try DiskDirW again to day.now filenames are correct .
I don't know why,may be it need restart TC or WINDOWS .
thank a lot for your help~~~