This is not a complete answer.
You can't store "Unicode characters," you can only encode them into bits and bytes that can be stored.
You haven't said if your hash contains UTF-8, ISO8859-1, or some other encoding. The "é" is a character, but its representation is different in each encoding. If any part of the process does not handle the encoding or decoding correctly, it ends up with some other character, or it ends up as invalid and undecypherable bits.
If the database supports UTF-8 encoding, then talk in terms of UTF-8 encoded strings, not simply "Unicode characters."
You may also want to read my prior writeup, FMTYEWTK about Characters vs Bytes.
--
[ e d @ h a l l e y . c c ]
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.