Thanks again Moritz.

I've installed Mail::Lite and tried to add a new subroutine to send a mail alongside my existing one.

I've had a couple of problems doing this as, as I mentioned above, I am completely new to Perl.

I believe I have overcome most of those issues, as there are no more compilation or errors or errors relating directly to my code, but now I have the following error :
Wide character in syswrite at /usr/lib/perl5/5.8.8/Net/Cmd.pm line 436.

Does that look like something I've done wrong in my implementation of the MIME::Lite code or something in the installation of the module even? Any ideas at all?

Thanks in advance for any trouble taken...

P.S.As aside, I'd really like to get to the bottom of the original problem too, I'm not sure it is due to a mixture of utf8/non-utf8 strings as I'm sure the results coming in from the DB are utf-8 as they are all encoded correctly in the mail headers, also, the additional information I outputted into the mail shows that both the string with the problem and the string it is being replaced in are both utf-8, if you have any ideas on this that would be great too!


In reply to Re^4: strange utf-8 (I think) behaviour... by seekay
in thread strange utf-8 (I think) behaviour... by seekay

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.