<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: perlscript encode a file to UTF-8 and send via ftp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316004#M859671</link>
    <description>hi Procura&lt;BR /&gt;&lt;BR /&gt;I've updatet perl to 5.8.3 and &lt;BR /&gt;I should transfer these file in ASCII mode.&lt;BR /&gt;there are CSV (text) files, I get from AS400 and should send to the mickysoft machine.&lt;BR /&gt;&lt;BR /&gt;if I change to:&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;ascii or die "ascii: ".$ftp-&amp;gt;message;&lt;BR /&gt;&lt;BR /&gt;or put away this line, then I get this error message:&lt;BR /&gt;&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 220 ttn208 Microsoft FTP Service (Version 5.0).&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; user user&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 331 Password required for user.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; PASS ....&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 230 User user logged in.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; CWD /tmp&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 250 CWD command successful.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; ALLO 27844&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 200 ALLO command successful.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; PORT 192,168,0,1,128,56&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 200 PORT command successful.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; STOR data.txt&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 150 Opening ASCII mode data connection for data.txt&lt;BR /&gt;Wide character in syswrite at /usr/lib/perl5/5.8.3/Net/FTP/A.pm line 92.&lt;BR /&gt;&lt;BR /&gt;do you know what could be wrong ?&lt;BR /&gt;</description>
    <pubDate>Mon, 28 Jun 2004 17:55:07 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2004-06-28T17:55:07Z</dc:date>
    <item>
      <title>perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3315998#M859665</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I've written a perl script to encode the file to UTF-8 and dend it via ftp , but it wont send any files.&lt;BR /&gt;&lt;BR /&gt;I get following error message:&lt;BR /&gt;550 /var/data.txt: The system cannot find the path specified.&lt;BR /&gt;&lt;BR /&gt;knows someone howto correct this code ?&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;use strict; &lt;BR /&gt;use warnings;&lt;BR /&gt;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;use Net::Netrc;&lt;BR /&gt;&lt;BR /&gt;use Encode qw/encode decode/;&lt;BR /&gt;use utf8; &lt;BR /&gt;&lt;BR /&gt;my $server = "x.x.x.x";&lt;BR /&gt;my $user = "user";&lt;BR /&gt;my $password = "password";&lt;BR /&gt;my $file = "/var/data.txt";&lt;BR /&gt;&lt;BR /&gt;my $ftp = Net::FTP-&amp;gt;new ($server, Timeout =&amp;gt; 9000, Debug =&amp;gt; 3);&lt;BR /&gt;$ftp or die "$server: cannot connect: $@";&lt;BR /&gt;$ftp-&amp;gt;login ($user,$password) or die "$_: Could not login: " . $ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;cwd($destination);&lt;BR /&gt;&lt;BR /&gt;#encoding and put file&lt;BR /&gt;open FILE, '&amp;lt;', $file or die "open $file $!";&lt;BR /&gt;binmode FILE, 'encoding(utf-8)' or die $!;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;put(\*FILE, $file); # must give remote name.&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;quit;</description>
      <pubDate>Fri, 25 Jun 2004 17:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3315998#M859665</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-25T17:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3315999#M859666</link>
      <description>Some small remarks that /might/ help.&lt;BR /&gt;- If you have a recent perl (perl-5.8.2 or up), there is no need for encode/decode. You already used the three-arg form of open, See 'man perlopentut' for the wider form of explanations. Theoretically, this should work as of 5.8.0, but a lot of bugs were solved in the releases that followed. 5.8.4 is the (currently) most recent.&lt;BR /&gt;- And -w and 'use warnings' both is doing it double. Better cautious that sorry probably :)&lt;BR /&gt;- If you use Net::Netrc, don't put the user and password in the script. ~/.netrc is enough&lt;BR /&gt;- Use $ftp-&amp;gt;message instead of $@&lt;BR /&gt;- Don't forget $ftp-&amp;gt;binary. Even though you *KNOW* that the ftp server will give binary by default, it's good practice to request that anyway (the might change server as I found out not too long ago on a mac)&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;---&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use strict; &lt;BR /&gt;use warnings;&lt;BR /&gt;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;use Net::Netrc;&lt;BR /&gt;&lt;BR /&gt;my $server = "x.x.x.x";&lt;BR /&gt;my $file = "/var/data.txt";&lt;BR /&gt;&lt;BR /&gt;my $ftp = Net::FTP-&amp;gt;new ($server, Timeout =&amp;gt; 9000, Debug =&amp;gt; 3) or die "$server: cannot connect: ".$ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;login or die "login: " .$ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;binary or die "binary: ".$ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;cwd ($destination) or die "cd $destination: ".$ftp-&amp;gt;message;&lt;BR /&gt;&lt;BR /&gt;open my $fh, "&amp;lt;:utf8", $file or die "open $file: $!";&lt;BR /&gt;$ftp-&amp;gt;put ($fh, $file); # must give remote name.&lt;BR /&gt;close $fh or die "Cannot close file\n";&lt;BR /&gt;$ftp-&amp;gt;quit; &lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;I admire your safe programming style. I only made the file handle lexical too. And I closed the file handle and checked for error.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Sun, 27 Jun 2004 05:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3315999#M859666</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-06-27T05:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316000#M859667</link>
      <description>thanks ! &lt;BR /&gt;I've tried your code, but it wont transfer the file and still get this message like before:&lt;BR /&gt;&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 220 ttn208 Microsoft FTP Service (Version 5.0).&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;gt;&amp;gt;&amp;gt; user user&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 331 Password required for user.&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;gt;&amp;gt;&amp;gt; PASS ....&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 230 User user logged in.&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;gt;&amp;gt;&amp;gt; TYPE I&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 200 Type set to I.&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;gt;&amp;gt;&amp;gt; CWD /tmp&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 250 CWD command successful.&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;gt;&amp;gt;&amp;gt; PORT 192,168,0,1,143,9&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 200 PORT command successful.&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;gt;&amp;gt;&amp;gt; STOR /var/data.txt&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 550 /var/data.txt: The system cannot find the path specified.&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;gt;&amp;gt;&amp;gt; QUIT&lt;BR /&gt;Net::FTP=GLOB(0x83df0c0)&amp;lt;&amp;lt;&amp;lt; 221&lt;BR /&gt;&lt;BR /&gt;I think the problem is because it looks for /var/data.txt on the remote server, but this is a local path.&lt;BR /&gt;remote path is /tmp and there the file should&lt;BR /&gt;be transfered.&lt;BR /&gt;do you know, how can I solve this problem ? &lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris&lt;BR /&gt;</description>
      <pubDate>Sun, 27 Jun 2004 12:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316000#M859667</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-27T12:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316001#M859668</link>
      <description>That does not look as how the docs say it should work.&lt;BR /&gt;&lt;BR /&gt;What's your version of perl?&lt;BR /&gt;&lt;BR /&gt;# perl -v&lt;BR /&gt;&lt;BR /&gt;And what's your version of Net::FTP?&lt;BR /&gt;&lt;BR /&gt;# perl -MNet::FTP -le'print $Net::FTP::VERSION"&lt;BR /&gt;&lt;BR /&gt;I'd like to check myself.&lt;BR /&gt;FWIW currently I have:&lt;BR /&gt;&lt;BR /&gt;lt09:/home/merijn 101 &amp;gt; perl -v&lt;BR /&gt;&lt;BR /&gt;This is perl, v5.8.3 built for i686-linux-64int&lt;BR /&gt;(with 1 registered patch, see perl -V for more detail)&lt;BR /&gt;&lt;BR /&gt;Copyright 1987-2003, Larry Wall&lt;BR /&gt;&lt;BR /&gt;Perl may be copied only under the terms of either the Artistic License or the&lt;BR /&gt;GNU General Public License, which may be found in the Perl 5 source kit.&lt;BR /&gt;&lt;BR /&gt;Complete documentation for Perl, including FAQ lists, should be found on&lt;BR /&gt;this system using `man perl' or `perldoc perl'.  If you have access to the&lt;BR /&gt;Internet, point your browser at &lt;A href="http://www.perl.com/," target="_blank"&gt;http://www.perl.com/,&lt;/A&gt; the Perl Home Page.&lt;BR /&gt;&lt;BR /&gt;lt09:/home/merijn 102 &amp;gt; perl -MNet::FTP -le'print $Net::FTP::VERSION'&lt;BR /&gt;2.74&lt;BR /&gt;lt09:/home/merijn 103 &amp;gt; perl -MV=Net::FTP&lt;BR /&gt;Net::FTP&lt;BR /&gt;        /pro/lib/perl5/5.8.3/Net/FTP.pm: 2.74&lt;BR /&gt;lt09:/home/merijn 104 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Change 331 on 1999/09/18 by &lt;GBARR&gt; (Graham Barr)&lt;BR /&gt;&lt;BR /&gt;Net::FTP&lt;BR /&gt;- get and put now accept *FD as well as \*FD for the local filehandle&lt;BR /&gt;&lt;BR /&gt;So the method you are using is allowed for at least since Sep 1999.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Having said all of this, I just think of the most obvious: Di you strip the path from the file?&lt;BR /&gt;&lt;BR /&gt;$file =~ s{.*/}{};&lt;BR /&gt;$ftp-&amp;gt;put ($fh, $file);&lt;BR /&gt;&lt;BR /&gt;Should probably fix your problem.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ wondering why he thought about themost obvious only after looking for the least obvious ... ]&lt;/GBARR&gt;</description>
      <pubDate>Sun, 27 Jun 2004 14:36:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316001#M859668</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-06-27T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316002#M859669</link>
      <description>I've hit similar problems in the past, now I change to the source directory, either by a cd before the ftp or with a lcd within the ftp, and just PUT the filename with no path.&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Sun, 27 Jun 2004 17:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316002#M859669</guid>
      <dc:creator>Procnus</dc:creator>
      <dc:date>2004-06-27T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316003#M859670</link>
      <description>hi Procura&lt;BR /&gt;&lt;BR /&gt;thanks a lot, now it works well !&lt;BR /&gt;&lt;BR /&gt;# perl -v&lt;BR /&gt;This is perl, v5.8.0 built for i586-linux-thread-multi&lt;BR /&gt;&lt;BR /&gt;# perl -MNet::FTP -le'print $Net::FTP::VERSION'&lt;BR /&gt;2.65&lt;BR /&gt;&lt;BR /&gt;but I'll update both of them shortly.&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris</description>
      <pubDate>Sun, 27 Jun 2004 18:36:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316003#M859670</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-27T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316004#M859671</link>
      <description>hi Procura&lt;BR /&gt;&lt;BR /&gt;I've updatet perl to 5.8.3 and &lt;BR /&gt;I should transfer these file in ASCII mode.&lt;BR /&gt;there are CSV (text) files, I get from AS400 and should send to the mickysoft machine.&lt;BR /&gt;&lt;BR /&gt;if I change to:&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;ascii or die "ascii: ".$ftp-&amp;gt;message;&lt;BR /&gt;&lt;BR /&gt;or put away this line, then I get this error message:&lt;BR /&gt;&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 220 ttn208 Microsoft FTP Service (Version 5.0).&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; user user&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 331 Password required for user.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; PASS ....&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 230 User user logged in.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; CWD /tmp&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 250 CWD command successful.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; ALLO 27844&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 200 ALLO command successful.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; PORT 192,168,0,1,128,56&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 200 PORT command successful.&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;gt;&amp;gt;&amp;gt; STOR data.txt&lt;BR /&gt;Net::FTP=GLOB(0x830c7d8)&amp;lt;&amp;lt;&amp;lt; 150 Opening ASCII mode data connection for data.txt&lt;BR /&gt;Wide character in syswrite at /usr/lib/perl5/5.8.3/Net/FTP/A.pm line 92.&lt;BR /&gt;&lt;BR /&gt;do you know what could be wrong ?&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jun 2004 17:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316004#M859671</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-28T17:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316005#M859672</link>
      <description>1. It's just a warning&lt;BR /&gt;2. I /think/ yopu should go for binary transfer anyway. If you need CR/LF conversions, do it in the script&lt;BR /&gt;3. We (on the perl front) don't realy know if FTP (the server part, in your case on M$) is defined well enough to support UTF-8 at all. Maybe by sending it binary, you can prevent that message&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Tue, 29 Jun 2004 14:25:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316005#M859672</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-06-29T14:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316006#M859673</link>
      <description>hi Procura&lt;BR /&gt;&lt;BR /&gt;thanks, it works, but with UTF-8 I still get problems.&lt;BR /&gt;I've found out today, that the remote machine doesn't support UTF8, but it supports UTF-16.&lt;BR /&gt;&lt;BR /&gt;do you know how to change to UTF16 ?&lt;BR /&gt;&lt;BR /&gt;should I install an additional modul ?&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris</description>
      <pubDate>Wed, 30 Jun 2004 11:21:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316006#M859673</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-30T11:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316007#M859674</link>
      <description>Since UTF-8 is a subset of UTF-16, I would expect it to "Just Work As Expected" (TM)&lt;BR /&gt;But OTOH, it's M$, so it probably won't.&lt;BR /&gt;We had some discussions about the utf8-ness of the ftp output file handle on perl5-porters, and I don't know if any consensus was reached after I went to bed.&lt;BR /&gt;Fact is that none of us knew how to explicitly set utf8-ness to the output socket, and at what stage perl has no more control over it.&lt;BR /&gt;A workaround at the moment seems to be my suggestion to use Compress::ZIP to create a Windows zip file, and ftp that in plain uncoded binary, and use unpzip/winzip/power-archiver on the target side to unzip it.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ who spent some time in Net::FTP's internals only to find out it's a pretty dark forrest out there of inheritance trees ]</description>
      <pubDate>Wed, 30 Jun 2004 11:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316007#M859674</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-06-30T11:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316008#M859675</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;I cannot use the zip or tar solution in my case, otherwise the file cannot be processed on the remote site.&lt;BR /&gt;&lt;BR /&gt;if I convert from shell with:&lt;BR /&gt;&lt;BR /&gt;# iconv -f latin1 -t UTF16 test.txt &amp;gt; test1.txt&lt;BR /&gt;&lt;BR /&gt;and send test1.txt ascii via ftp it looks fine for some tests.&lt;BR /&gt;&lt;BR /&gt;but don't know how to do with perl.&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris &lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2004 12:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316008#M859675</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-30T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316009#M859676</link>
      <description>fast way out:&lt;BR /&gt;&lt;BR /&gt;open my $fh, "iconv -f latin1 -t UTF16 test.txt |" or die ".....";&lt;BR /&gt;&lt;BR /&gt;I bet use Encode can help here too, but I never used that.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 30 Jun 2004 12:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316009#M859676</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-06-30T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: perlscript encode a file to UTF-8 and send via ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316010#M859677</link>
      <description>thanks a lot, Procura !&lt;BR /&gt;&lt;BR /&gt;do you think, can I use Mod "Unicode" as well ?&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris</description>
      <pubDate>Sun, 28 Nov 2004 19:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perlscript-encode-a-file-to-utf-8-and-send-via-ftp/m-p/3316010#M859677</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-11-28T19:21:13Z</dc:date>
    </item>
  </channel>
</rss>

