Do the files and directories actually exist on your system?
Try removing the use utf8;, since path names are byte strings on Linux and Unix systems.
| [reply] [d/l] |
If you did as moritz suggestions, and assure the files or directories exist, I suspect filecoding setting of file you edit may be incorrect.
please check:
- input env in terminal to see what NLS_LANG is.
- check filecodings, the easiest way is to open file by a browser, and see which coding can show chinese words correctly.
- try using utf8::all instead utf8 if file coding is utf8
| [reply] |
Hi, Thanks for answering ! I think the trouble is that Perl can not recognize those file names with space and special marks such as [.-( {...
As for Chinese name, put "use UTF8;" in front of program is ok, but it doesn't help for those special marks and space in file name.
Our Perl version is 5.8.3; does this matter ? -- Anne
| [reply] |
Hi,
Thanks for trying answering !
I think the trouble is that Perl can not recognize those file names with space and special marks such as [.-( {...
as for Chinese name, put "use UTF8;" in front of program is ok, but it doesn't help for those special marks and space in file name.
Our Perl version is 5.8.3; does this matter ?
-- Anne
| [reply] |