Now, how do I alter the mysqld environment: All of the following in the my.cnf fail:
# character-set-client =utf8
# character-set-connection =utf8
# character-set-database =utf8
# set-variable = character_set_filesystem =binary
# set-variable = character_set_results =utf8
# set-variable = character_set_server =utf8
# set-variable = character_set_system =utf8
# set-variable = character_sets_dir =/usr/share/mysql/charsets/
# collation-connection =utf8_general_ci
# collation-database = utf8_general_ci
# collation-server = utf8_general_ci

Update: (THREAD SOLVED)
Ok, let's check your current configuration:
$ mysql > SHOW VARIABLES;
You probably see lots of "latin1" for variables with a charset_* prefix. These are common defaults.

You might want to change this. Compare the manual to understand what we do now.
You can set the MySQL config variables globally in the my.cnf config file, with:
[mysqld] ... init_connect="SET collation_connection = utf8_general_ci" init_connect="SET NAMES utf8" default-character-set = utf8 character-set-server = utf8 collation-server = utf8_general_ci [client] default-character-set = utf8 [mysqldump] ... default-character-set = utf8

Or you can do this on a "per connection" basis.
For example, when you use DBI and MySQL, set mysql_enable_utf8 to a true value via the extra params passed to the driver upon connection.

(This thread is marked as being solved, as I found out, most problems similar to the described one here are coming from the MySQL server being in default/latin1 mode while you try to have everything else in your pipeline in utf8. Changing this last element to utf8 solves it.)

In reply to Re^2: Is it perl or MySQL? ü ends up in CGI script by isync
in thread Is it perl or MySQL? ü ends up in CGI script by isync

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.