I'm with
apl: relying on font glyphs to see and show the data reminds me of the old story about blind men describing an elephant. At the very least, use some non-perl method to store the database field value in question into a plain-text file (without interpretation of any kind), and get a hex dump of the file.
Then, when you get the database field via a DBI query in your perl script, print it like this:
print join(" ", map { sprintf("%04x", ord()) } split //, $field_val
+ue ), "\n";
There are other ways to dump a string as hex bytes; there's no reason to be picky about which method you use, so long as the output is complete and accurate.
If the two sets of hex numbers differ, you've got a strange problem (maybe the storage into a plain-text involved some interpretation that you were not aware of). If they are the same, your problem is to figure out why they are showing up differently in one display method vs. another.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.