MySQL Forums
Forum List  »  German

UTF8 und Umlaute
Posted by: Lutz Mahle
Date: September 06, 2011 04:38AM

Hallo MySQL-Gemeinde,

folgendes Problem stellt sich mir und meiner Datenbank:

Das Speichern von Umlauten funktioniert nur über phpMyAdmin (z.Zt. 3.3.10) auf dem localhost [INSERT INTO `artist` (`ID`, `name`) VALUES (NULL, 'ÜÜÜÖÖÖAAABBB');].
Der gleiche Befehl über die Konsole resultiert in einem leeren Feld in der Spalte `name`. Die Umlaute samt dem restlichen Text sind einfach weg.
In einem PHP-Skript wird vorher sogar "SET NAMES 'utf8'" und "SET CHARACTER SET 'utf8'" aufgerufen, bevor ein insert abgesetzt wird, hat aber das gleiche Ergebnis wie der Konsoleneinsatz.

Das durchforsten diverser Foren hat zwar einige hilfreiche Informationen zu Tage gebracht, die aber bisher allesamt leider nichts gebracht haben.

MySQL-Version Server Version: 5.1.53-log / mysqlnd 5.0.7-dev
PHP Version 5.3.5
OpenSuse Linux 11.4

Die betroffene Tabelle:
-----------------------
CREATE TABLE IF NOT EXISTS `artist` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
PRIMARY KEY (`ID`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8

show variables (Auszug):
------------------------
character_set_client | utf8
character_set_connection | utf8
character_set_database | utf8
character_set_filesystem | binary
character_set_results | utf8
character_set_server | utf8
character_set_system | utf8
character_sets_dir | /usr/share/mysql/charsets/
collation_connection | utf8_unicode_ci
collation_database | utf8_general_ci
collation_server | utf8_general_ci

Was kann/muss man wo noch einstellen, damit das Speichern reibungslos funktioniert? Oder muss ich komplett auf ein anderes Characterset umstellen?

Vielen Dank im voraus für hilfreiche Ideen.

Lutz

Options: ReplyQuote


Subject
Views
Written By
Posted
UTF8 und Umlaute
3356
September 06, 2011 04:38AM
1706
September 07, 2011 06:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.