in reply to Re: Diiference between these two filenames / strings
in thread Diiference between these two filenames / strings
Hi Daxim,
I think your Hint did the trick. Following code suggested by another monk seems working fine for me. I have checked below code on filenames in diff languages, like Chinese, Japanese, Danish, polish, Spanish and off-course English. use Encode; $filename = decode_it($filename); $filename = encode('UTF-8', $filename);Thank you. Cheers.#--------------------------------------- sub decode_it { my $s = shift; eval { $s = decode('UTF-8', $s, 1); 1; } or do { $s = decode('latin1', $s, 1); }; return $s; }
|
|---|