in reply to Test code (was: Re: Character encoding in emails)
in thread Character encoding in emails

So... for this example you don't actually have any unicode characters at all, right? Your __DATA__ is using html entities written in ASCII, and all the literals are also ASCII. And the emoji still doesn't come through?

For debugging, you can always "view source" in your mail client (well, usually, or maybe you need to install Thunderbird). The source of the email should reveal if something broke your HTML.

When you get past this first hurdle though, and go back to using Unicode characters, you should:

Replies are listed 'Best First'.
Re^2: Test code (was: Re: Character encoding in emails)
by afoken (Chancellor) on Dec 09, 2023 at 11:41 UTC
    Make sure your DBI was connected with option { mysql_enable_utf8 => 1 }

    That won't help with DBD::MariaDB, see "UNICODE SUPPORT" in its fine manual.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      That won't help with DBD::MariaDB

      We use MariaDB. But I think (I'll check later when I can) we use DBI::mysql as the driver.