go ahead... be a heretic | |
PerlMonks |
Re: how to change unicode string to byte array ?by moritz (Cardinal) |
on Sep 28, 2008 at 18:23 UTC ( [id://714202]=note: print w/replies, xml ) | Need Help?? |
Sorry, your description is too cluttered and not very good readable (did you read Writeup Formatting Tips?) to make sense to me.
But there are a few things you should know: You can downgrade your string with Encode::encode_utf8 into a "byte string", the reverse function is decode_utf8 in the same module. What happens to the strings inside your database is subject to the DB configuration and the options to the DBD module you're using (DBD::mysql probably). See also encodings and Unicode, Encode, perluniintro and perlunifaq.
In Section
Seekers of Perl Wisdom
|
|