Yes, there probably is a simple explanation.

But you haven't given us much to go on. "Short and simple" are great virtues, but not when they lead you to omit necessary information such as...

  1. What database?
  2. Where is it -- local or on another machine?
  3. How did you get "the field out of the database?"
  4. Do you have any idea how the string was encoded when it was entered into the DB?
  5. What is the encoding used on your machine?

Off the top of my head, and relying only on the extensive information (NOT!) that you provided, an encoding mismatch seems to be one possibility (among many).

If you'll read How do I post a question effectively?, On asking for help and I know what I mean. Why don't you?, you'll find some tips on how to pose a question here in a form the Monks can use to help you.


In reply to Re: Character issue when pulling data out of MSSQL using DBI by ww
in thread Character issue when pulling data out of MSSQL using DBI by bwickland

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.