Wie nutze ich deutsche Umlaute richtig in PhP pl 23.04.2019 14:35 Wie nutze ich deutsche Umlaute richtig in PhP hi > Auch für PDO braucht man kein SET NAMES, da gibt man `charset=...` als Teil des DSN beim Erstellen des PDO-Objekts an. Hat bei mir NULL Effekt. PHPv 5.3.0 Mit Perl hingegen ~~~perl $dbh->do(q(insert into stings (sting) values(?)),{},"äöüß"); my $h = $dbh->selectrow_hashref("SELECT upper(sting) as sting FROM stings"); print $h->{sting}; # ÄÖÜß ~~~ funktioniert das einwandfrei. MFG PS: array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8') kennt meine PHP Version noch nicht.