default debian installation mit Apache 2.2 MySQL 5 und PHP5 zeigt ein derartiges Zeichensatzdurcheinander, das ich hier nicht mehr durchblicke :-(
Aus ner alten MySQL DB (latin1 Character set) importierte Daten, zeigen per phpMyAdmin korrekte Umlaute. Im Browser kommen da jedoch nur wunderschöne ? an :?
Nun verstehe ich schon nicht, wie es sein kann das ne default Installation scheints nichtmal konsistent EINEN Zeichensatz verwendet 8O
Das zeigt sich für mich dann so:
locale
Code: Select all
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
Code: Select all
455: AddCharset us-ascii .ascii .us-ascii
456: AddCharset ISO-8859-1 .iso8859-1 .latin1
457: AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
458: AddCharset ISO-8859-3 .iso8859-3 .latin3
459: AddCharset ISO-8859-4 .iso8859-4 .latin4
460: AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
461: AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
462: AddCharset ISO-8859-7 .iso8859-7 .grk .greek
463: AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
464: AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
465: AddCharset ISO-8859-10 .iso8859-10 .latin6
466: AddCharset ISO-8859-13 .iso8859-13
467: AddCharset ISO-8859-14 .iso8859-14 .latin8
468: AddCharset ISO-8859-15 .iso8859-15 .latin9
469: AddCharset ISO-8859-16 .iso8859-16 .latin10
470: AddCharset ISO-2022-JP .iso2022-jp .jis
471: AddCharset ISO-2022-KR .iso2022-kr .kis
472: AddCharset ISO-2022-CN .iso2022-cn .cis
473: AddCharset Big5 .Big5 .big5 .b5
474: AddCharset cn-Big5 .cn-big5
476: AddCharset WINDOWS-1251 .cp-1251 .win-1251
477: AddCharset CP866 .cp866
478: AddCharset KOI8 .koi8
479: AddCharset KOI8-E .koi8-e
480: AddCharset KOI8-r .koi8-r .koi8-ru
481: AddCharset KOI8-U .koi8-u
482: AddCharset KOI8-ru .koi8-uk .ua
483: AddCharset ISO-10646-UCS-2 .ucs2
484: AddCharset ISO-10646-UCS-4 .ucs4
485: AddCharset UTF-7 .utf7
486: AddCharset UTF-8 .utf8
487: AddCharset UTF-16 .utf16
488: AddCharset UTF-16BE .utf16be
489: AddCharset UTF-16LE .utf16le
490: AddCharset UTF-32 .utf32
491: AddCharset UTF-32BE .utf32be
492: AddCharset UTF-32LE .utf32le
493: AddCharset euc-cn .euc-cn
494: AddCharset euc-gb .euc-gb
495: AddCharset euc-jp .euc-jp
496: AddCharset euc-kr .euc-kr
498: AddCharset EUC-TW .euc-tw
499: AddCharset gb2312 .gb2312 .gb
500: AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
501: AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
502: AddCharset shift_jis .shift_jis .sjis
Code: Select all
character set client utf8
(Globaler Wert) latin1
character set connection utf8
(Globaler Wert) latin1
character set database latin1
character set filesystem binary
character set results utf8
(Globaler Wert) latin1
character set server latin1
character set system utf8
character sets dir /usr/share/mysql/charsets/
collation connection utf8_unicode_ci
(Globaler Wert) latin1_swedish_ci
collation database latin1_swedish_ci
collation server latin1_swedish_ci
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
Importiert wurde der "alte dump" mit der Option --default-character-set=latin1
So, und nu???
Wo sollte was stehen? Und wie muss ich die Daten ggfs. konvertieren? Ich dachte durchgängig UTF8 wäre toll, doch gelingen will mir das nicht :-(
Bitte helft mir mal...
Gruß
Andreas
P.S.: komisch, mit sarge out of the box gab's sone Dramen nie! OK, sicher meine Unwissenheit, aber das kanns doch auch nicht sein :-(