Unicode characters support for plugins Diskdir

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
rmmaniac
Junior Member
Junior Member
Posts: 20
Joined: 2009-04-14, 05:56 UTC

Unicode characters support for plugins Diskdir

Post by *rmmaniac »

it is possible add Unicode characters support for plugins Diskdir
Diskdir without updated since 2012 :cry: :cry: :cry:
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Unicode characters support for plugins Diskdir

Post by *Usher »

There is already DiskDirW: http://totalcmd.net/plugring/diskdirw.html
…but it would be nice to have DiskDirExtendedW as well…
Andrzej P. Wozniak
Polish subforum moderator
rmmaniac
Junior Member
Junior Member
Posts: 20
Joined: 2009-04-14, 05:56 UTC

Re: Unicode characters support for plugins Diskdir

Post by *rmmaniac »

thank
but this DiskDirW plugins pack Unicode characters appeared gibberish :?: :?: :?:
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Unicode characters support for plugins Diskdir

Post by *Usher »

Could provide some examples and explain what exactly do you mean, please?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Unicode characters support for plugins Diskdir

Post 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.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Unicode characters support for plugins Diskdir

Post 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?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Unicode characters support for plugins Diskdir

Post by *MVV »

It seems that sources are available.
rmmaniac
Junior Member
Junior Member
Posts: 20
Joined: 2009-04-14, 05:56 UTC

Re: Unicode characters support for plugins Diskdir

Post by *rmmaniac »

for example my origine filename is -> 口才的奧義:說話高手的基本常識課.pdf
but after pack withDiskDirW .result is -> ????尼蝢抬?隤芾店擃???砍虜霅玨.pdf
Please Fix :cry: :cry: :cry:
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Unicode characters support for plugins Diskdir

Post 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?
Andrzej P. Wozniak
Polish subforum moderator
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Unicode characters support for plugins Diskdir

Post 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.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Unicode characters support for plugins Diskdir

Post 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.
Andrzej P. Wozniak
Polish subforum moderator
rmmaniac
Junior Member
Junior Member
Posts: 20
Joined: 2009-04-14, 05:56 UTC

Re: Unicode characters support for plugins Diskdir

Post 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~~~
Post Reply