Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As <em>workaround</em> I can suggest to convert all unsupported characters to supported. This can be done in many ways. For example you can use <code>URI::Escape</code>:</p> <pre><code>use URI::Escape; my $new_file_name = uri_escape($weird_file_name); </code></pre> <p><strong>Update:</strong></p> <p>Here is how I was able to copy file by its uft-8 name. I'm on Windows. I've used <a href="http://search.cpan.org/perldoc?Win32" rel="nofollow noreferrer"><code>Win32::GetANSIPathName</code></a> to get short file name. Then it was copied nice:</p> <pre><code>use File::Copy; use URI::Escape; use Win32; use utf8; ## tell perl that source code is in utf-9 use strict; use warnings; my $test_file = "IBMýSoftware.txt"; my $from_file = Win32::GetANSIPathName($test_file); ## get "short" name of file my $to_file = uri_escape($test_file); ## name with special characters escaped printf("copy [%s] -&gt; [%s]\n", $from_file, $to_file); copy($from_file, $to_file); </code></pre> <p>After coping all file to new names on Windows, you'll be able to work with them on linux without problems.</p> <p>Here are some hints about utf-8 file opening:</p> <ul> <li><a href="https://stackoverflow.com/questions/2184726/how-do-i-create-a-unicode-directory-on-windows-using-perl">How do I create a Unicode directory on Windows using Perl?</a></li> <li><a href="https://stackoverflow.com/questions/1742279/with-a-utf8-encoded-perl-script-can-it-open-a-filename-encoded-as-gb2312">With a utf8-encoded Perl script, can it open a filename encoded as GB2312?</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload