Re: Can I upload Perl program in unicode?



Good morning , all

If a Perl script can be encoded in UTF8, the problem must lie with the
upload. I use WS_FTP Pro on my Windows (sorry) machine and vsftpd on my
linux server. I need to look at the setup on both. The answer lies there.

Many thanks and regards
John















"Jürgen Exner" <jurgenex@xxxxxxxxxxx> wrote in message
news:6kat84hutbf0u9dsa7f18jjoc8o2e412u7@xxxxxxxxxx
Bill H <bill@xxxxxxxxx> wrote:
I think - and I could be wrong here, John is writing his code using
something like Notepad that warns you about saving in utf or not. If
you don't save in utf the characters go away. It may be that he saves
in utf and then when uploading it is messed up by his ftp program.

Quite possible. Another wild guess:
- If he is using Notepad and saves as UTF8, then Notepad prepends a
totally useless BOM(*) to the file. Mabye perl is choking on that BOM.

*: UTF8 is a _byte_ stream and does not have a byte order

jue


.



Relevant Pages

  • RE: [PHP] Images being uploaded in ASCII format
    ... I'll look forward to the perl script to see if it sheds any more light ... Images being uploaded in ASCII format ... Unfortunately PHP does not allow access to raw POST ... Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. ...
    (php.general)
  • permissions
    ... I recently moved my site from a virtual server where every perl script I ... uploaded was owned by the default user 'nobody'. ... Now with my new host where I have root access the default upload owner ... I now have to set permisions to 755 and 777 just to get ...
    (comp.lang.perl.misc)
  • Re: Site chopped more than 1/2 the size -was Ping John
    ... way) or regenerate and upload whole site. ... from a set of XML files via Perl. ... the Perl script generates the HTML (and reports ...
    (alt.internet.search-engines)
  • Re: Secure FTP
    ... I am setting up a cron job which calls a perl script, ... I want to upload a file to a secure ftp server. ...
    (comp.lang.perl.misc)
  • Re: UTF8 to Unicode conversion
    ... > from a Perl script] and copy it, however some specific lines are in ... > fact in UTF8 as printed garbagy characters and they need to be ... UTF8 *is* Unicode. ...
    (comp.lang.perl)