Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^12: Weird error log message

by Nik
on Jun 16, 2009 at 18:44 UTC ( #772102=note: print w/ replies, xml ) Need Help??


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?


Comment on Re^12: Weird error log message
Select or Download Code
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

      i saw your post and tried what you sais, but it wotn work when i upload it. did i miss something?
        Yes. You neglected to provide any information. Again.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://772102]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-12-19 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (69 votes), past polls