in reply to Re^11: Weird error log message
in thread Weird error log message

Thanks i can see the 1st 3 bytes if BOM is used. Still the link is disfunctional and i dont know why BOM is used.

i try using
#! #!/usr/bin/perl -w
and
#!/usr/bin/perl -w use utf8;
and save my script with the use of Notepad++ with utf8 encoding, but when i upload it wont run. why?

Also in my scripts aprt from the perl syntax i use greek characatets. does that mean that i have to save my scripts in utf8 encoding or ansi? What iam trying to say here is based on what criteria should i choose as to what encoding i must pick for saving my perl scripts? Why ut8? why utf8 without Bom? why ansi? is there a reason? Why locally all encodings work and remotely only ansi does?

Replies are listed 'Best First'.
Re^13: Weird error log message
by ikegami (Pope) on Jun 16, 2009 at 18:48 UTC

    save my script with the use of Notepad++ with utf8 encoding, but when i upload it wont run. why?

    Already answered

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^13: Weird error log message
by ikegami (Pope) on Jun 16, 2009 at 18:57 UTC
    [ Oops, posted too soon by accident, so I'll post the rest here ]

    Still the link is disfunctional

    No. Like i already said, your end is what's dysfunctional. There's a whole web out there to google, so no excuse.

    Also in my scripts aprt from the perl syntax i use greek characatets. does that mean that i have to save my scripts in utf8 encoding or ansi?

    ANSI is not a specific encoding. It's Windows terminology to use the local encoding, for some definition of local.

    But it's moot. Unless you use the broken/weird use encoding, Perl only understands iso-8859-1 (use utf8; off) and UTF-8 (use utf8; on).

    iso-8859-1 doesn't support greek characters, so that leaves UTF-8.

    why utf8 without Bom?

    U+FEFF is only a BOM if it's the very first character of a file. (It's a zero-width no-break space elsewhere.)

    #! is only a shebang if it's the very first characters of a file.

    That means you can only use one or the other.

      This post i didnt't understand at all.