utf8 encoding in Perl and MySql

前端 未结 4 1981
无人共我
无人共我 2021-02-13 16:57

my database (MySql) has a utf8_general collation. I am accessing data from database and showing a webpage (developed in Perl), it is showing Swedish characters (ä,å,ö) with a di

4条回答
  •  天命终不由人
    2021-02-13 17:22

    Here is the complet spec :

    http://search.cpan.org/~capttofu/DBD-mysql-4.038/lib/DBD/mysql.pm#mysql_enable_utf8

    Additionally, turning on this flag tells MySQL that incoming data should be treated as UTF-8. This will only take effect if used as part of the call to connect(). If you turn the flag on after connecting, you will need to issue the command SET NAMES utf8 to get the same effect.

提交回复
热议问题