in reply to how to change unicode string to byte array ?
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.
|
|---|