in reply to Re^2: MD5 non ascii file name
in thread MD5 non ascii file name
ok, so if I adopt UTF-16LE would MD5 be able to handle non-ASCII file object?
Digest and Digest::MD5 can calculate the hash sum of any binary data that you can read in perl.
And on linux this simply works:
$ echo foo > 零一.txt
$ perl -we 'print while <>' 零一.txt
foo
(Intentionally no code tags here because they break non-latin1-chars)
So yes, it's possible, by treating the file names as simple binary data. On Linux, at least ;-).
On top of that, File::Find isn't working on a directory named '零一', either, same problem?!?
"not working" is not an error description. What code fails? with what message?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: MD5 non ascii file name
by benjwlee (Initiate) on Aug 19, 2008 at 21:45 UTC |