Anyone knowingly using anything other than ASCII for their source code is a damned fool. If you need non-ASCII data, such as for text that you'll spit out at the user, that should live elsewhere in a resource file. Not only will that do away with problems like the one you're having, it will also mean that things don't break when someone using a different character set edits your code*, and you'll already be half way to supporting multiple languages.

* any bleating about "everyone should use UTF-8" will be ignored because regardless of whether people should use it the fact is that lots of people don't use it, and you want to keep the "barrier to entry" for them submitting patches that fix your bugs as low as possible.


In reply to Re^4: running scripts in Mac OS 10.4 by DrHyde
in thread running scripts in Mac OS 10.4 by rogerd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.