UnicodeTest/LockedTest
Moderators: Hacker, petermad, Stefan2, white
UnicodeTest/LockedTest
This content plugin allows to check:
1. is filename Unicode or ANSI (on Windows NT/2000/XP systems);
2. is file locked by another task or not.
http://www.totalcmd.net/plugring/UnicodeTest.html
1. is filename Unicode or ANSI (on Windows NT/2000/XP systems);
2. is file locked by another task or not.
http://www.totalcmd.net/plugring/UnicodeTest.html
Last edited by Alextp on 2011-09-29, 08:23 UTC, edited 3 times in total.
Of course you should - it is not small for the ones who need it!BTW, should I put it to Totalcmd.net? IMHO plugin is very small for it.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Thanks for this plugin, Alextp!
Could you add a column, which states the character encoding in the follwing manner?
Would be useful in order to check, if problems with some archivers might occur.
Example: The "€"-symbol is ANSI-coded (x'80'), but ZIP will replace this character by "_". Unicode for "€" is x'20AC' (>x'FF'), so result for the new plugin column should be "Unicode" (while existing column reports "ANSI").
Isn't that reliable. Char "ƒ" (ANSI x'83', Unicode x'0192') for instance will result in "Unicode". Bit ZIP handles this char correct, because it is present in westeuropean DOS encoding). I'am afraid, that it would be too much work to recognize, if all characters of a given filename fits a certain encoding / codepage, wouldn't it?
Thanks!
Could you add a column, which states the character encoding in the follwing manner?
Code: Select all
'Script for Script Content Plugin
'(c)Lev Freidin, 2005
strChrEnc = "ASCII-7"
For i = 1 to Len(filename)
intZn = AscW(Mid(filename, i ,1))
If intZn > 255 Then
strChrEnc = "Unicode"
Exit For
ElseIf intZn > 127 Then
strChrEnc = "ASCII-8"
Else
'NOP
End If
Next
content = strChrEnc
Example: The "€"-symbol is ANSI-coded (x'80'), but ZIP will replace this character by "_". Unicode for "€" is x'20AC' (>x'FF'), so result for the new plugin column should be "Unicode" (while existing column reports "ANSI").
Isn't that reliable. Char "ƒ" (ANSI x'83', Unicode x'0192') for instance will result in "Unicode". Bit ZIP handles this char correct, because it is present in westeuropean DOS encoding). I'am afraid, that it would be too much work to recognize, if all characters of a given filename fits a certain encoding / codepage, wouldn't it?
Thanks!
2van Dusen
Sorry, I didn't understand how function "AscW" works in the script.
AscW(0x80)=0x20AC and
AscW(0x83)=0x0192, right?
How to write this function in Pascal/C?
And, if you want to catch characters in filename that will be replaced by ZIP to '_', you should know, what function ZIP uses for that detection exactly. As you wrote, it's not "AscW(char)>255"...
Sorry, I didn't understand how function "AscW" works in the script.
AscW(0x80)=0x20AC and
AscW(0x83)=0x0192, right?
How to write this function in Pascal/C?
And, if you want to catch characters in filename that will be replaced by ZIP to '_', you should know, what function ZIP uses for that detection exactly. As you wrote, it's not "AscW(char)>255"...
Small extract from the VB Help file...Alextp wrote: Sorry, I didn't understand how function "AscW" works in the script.
HTHThe AscW function returns the Unicode character code except on platforms where Unicode is not supported, in which case, the behavior is identical to the Asc function.
CoolWater
2KevinMo
To have Unicode, you must have Win2k/XP, because Unicode API is fully supported only by these OS.
Open Character Map (charmap.exe), select some chars from different encodings (use chars from the end of map) and paste them while renaming file in Explorer - file will be in Unicode. To ensure it's in Unicode, try to open it by F3 - TC must show error: "File not found". If F3 gives no error, then file has accessible short name and TC uses it.
You may need to copy Unicode file to different folder so it will not have accessible short name. E.g. I needed to copy file from C: to D:, so copy will not have short name like source.
To have Unicode, you must have Win2k/XP, because Unicode API is fully supported only by these OS.
Open Character Map (charmap.exe), select some chars from different encodings (use chars from the end of map) and paste them while renaming file in Explorer - file will be in Unicode. To ensure it's in Unicode, try to open it by F3 - TC must show error: "File not found". If F3 gives no error, then file has accessible short name and TC uses it.
You may need to copy Unicode file to different folder so it will not have accessible short name. E.g. I needed to copy file from C: to D:, so copy will not have short name like source.
Last edited by Alextp on 2006-01-16, 17:36 UTC, edited 1 time in total.
2Alextp
N1 mate!! This one is of real usfe for me.
Now, possible bug
To reproduce you need few files with unicode chars and:
1. Sort by name for reference.
2. Sort by custom column.
3. Move focus from TC, return to TC and list is sorted diferntly...
Image: http://img458.imageshack.us/img458/3619/untitled9wy.jpg
Is sorting of custom coulmns implemented fully at all?
I remember there were some word on the forum about custom columns and sorting, I've tried to find it but...
TC is 6.53.
[Edit]
woops:)
in the image 2. and 3. should be changed
N1 mate!! This one is of real usfe for me.
Now, possible bug

To reproduce you need few files with unicode chars and:
1. Sort by name for reference.
2. Sort by custom column.
3. Move focus from TC, return to TC and list is sorted diferntly...
Image: http://img458.imageshack.us/img458/3619/untitled9wy.jpg
Is sorting of custom coulmns implemented fully at all?
I remember there were some word on the forum about custom columns and sorting, I've tried to find it but...
TC is 6.53.
[Edit]
woops:)
in the image 2. and 3. should be changed

Ambiguity succeeds where honesty dares not venture.
Update:
30.01.06: added field "Locked test", plugin name changed
Download
Now it's possible to find files by Alt+F7 that are locked by other tasks or TC. Then you may unlock such files using Unlocker (http://ccollomb.free.fr/unlocker).
30.01.06: added field "Locked test", plugin name changed
Download
Now it's possible to find files by Alt+F7 that are locked by other tasks or TC. Then you may unlock such files using Unlocker (http://ccollomb.free.fr/unlocker).
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact: