in reply to Re^2: How to copy files with Chinese names and special characters in Suse Linux?
in thread How to copy files with Chinese names and special characters in Suse Linux?

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.

  • Comment on Re^3: How to copy files with Chinese names and special characters in Suse Linux?
  • Download Code

Replies are listed 'Best First'.
Re^4: How to copy files with Chinese names and special characters in Suse Linux?
by Anonymous Monk on Jun 20, 2011 at 09:30 UTC
    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
      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
Re^4: How to copy files with Chinese names and special characters in Suse Linux?
by anne3294 (Initiate) on Jul 15, 2011 at 09:55 UTC
    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