| Neuer Benutzer
Registriert seit: 19.03.2007
Beiträge: 3
| Slava, Du hast recht! Scheint es nicht so, dass genau das gleiche passiert wie unten beschrieben. Also, dass beim Befüllen der Tabelle irgendwie nicht UTF8 aktiviert ist bzw. erkannt wird und ich dann diese kryptischen nicht sortierbaren Zeichen erhalte?
Meine Antwort von eben:
So, bin noch weniger schlauer als vorher. Habe wieder mal eine Testtabelle generiert: Code: CREATE TABLE test (
FSetNames varchar(10) character set latin1 COLLATE latin1_german1_ci,
FUtf8 varchar(5) character set utf8 COLLATE utf8_general_ci,
FLatin1 varchar(5) character set latin1 COLLATE latin1_german1_ci,
FLatin5 varchar(5) character set latin5 COLLATE latin5_turkish_ci
);
Und habe folgende Inserts durchgeführt Code: Set names utf8;
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','A','A','A');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','Ä','Ä','Ä');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','C','C','C');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','Ç','Ç','Ç');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','O','O','O');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','Ö','Ö','Ö');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','S','S','S');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('1 Utf8','Ş','Ş','Ş');
Set names Latin1;
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','A','A','A');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','Ä','Ä','Ä');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','C','C','C');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','Ç','Ç','Ç');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','O','O','O');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','Ö','Ö','Ö');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','S','S','S');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('2 Latin1','Ş','Ş','Ş');
Set names Latin5;
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','A','A','A');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','Ä','Ä','Ä');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','C','C','C');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','Ç','Ç','Ç');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','O','O','O');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','Ö','Ö','Ö');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','S','S','S');
Insert into test (FSetNames, FUtf8, FLatin1, FLatin5) values ('3 Latin5','Ş','Ş','Ş');
Und folgendes Ergebnis ist bei phpMyAdmin zu sehen: - Set Names Utf8 Latin1 Latin5
1 Utf8 Ä Ä Ä
1 Utf8 C C C
1 Utf8 Ç Ç Ç
1 Utf8 O O O
1 Utf8 Ö Ö Ö
1 Utf8 S S S
1 Utf8 Ş ? Ş
2 Latin1 A A A
2 Latin1 Ä Ä �
2 Latin1 C C C
2 Latin1 Ç Ç �
2 Latin1 O O O
2 Latin1 Ö Ö �
2 Latin1 S S S
2 Latin1 Åž Åž Å?
3 Latin5 A A A
3 Latin5 Ä Ä Ä
3 Latin5 C C C
3 Latin5 Ç Ç Ç
3 Latin5 O O O
3 Latin5 Ö Ö Ö
3 Latin5 S S S
3 Latin5 Åž Åž Åž
Was kann man aus diesem Ergebnis schlussfolgern? Mein Gott, bald blicke ich überhaupt nicht mehr durch - von wegen Verständnis.
Gruss Erna |