and submit that, when I check the database it has this:

[ I'm going with the assumption that the problem is that the database actually has stuff in the &# notation. If PerlMonks did that, let me know. ]

It's not Perl that did it. It's the browser that encoded the characters that way because it was asked to encode characters that didn't exist in the encoding it was directed to use (e.g. characters outside of iso-8859-1 when the encoding of the form's page is iso-8859-1).

I made sure my headers in the browser that perl prints have the correct encoding

If the problem is as I described, you shouldn't have the problem if the page containing the form is encoded using UTF-8.

What content type do you specify in the actual HTTP header. You've only shown the the content type you tell the browser the header should have contained.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Unrelated to your question: You claim your content is HTML, but that "/" at the end is illegal HTML.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
should be
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


In reply to Re: Russian Language read from mysql into perl script problem by ikegami
in thread Russian Language read from mysql into perl script problem by powerhouse

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.