Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache/Mysql Umlaute
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Fattinger
n00b
n00b


Joined: 22 Jan 2006
Posts: 9

PostPosted: Tue Aug 01, 2006 8:41 pm    Post subject: Apache/Mysql Umlaute Reply with quote

Ich habe seit ca. 1 Jahr mich recht wenig um meinen (Web)Server gekümmert. Es lief ein alter Apache mit der neusten Version des CMS Joomla und 2 kleinen PHP Skripten, jetzt hab ich jedoch beim Updaten das bekannte Umlaut Problem. In der MySQL-DB steht alles nach wie vor mit ä,ö etc. aber sobald es an den Apache bzw. ans PHP geht macht er "ö" oder ähnliches drauss, wenn ich es dann im CMS oder im Skript per Hand ändern wird ein "?" drauss. Die Datenbank sind laut phpmyadmin in "latin1_swedish_ci" - MySQL läuft ja jetzt wohl mit UTF-8 was anscheinend auch das Problem ist. Ist es nun möglich das irgendwie wieder rückgängig zu machen oder anderweitig das Probem zu lösen, dass meine 2 Skripte und das CMS wieder laufen.
Wenn jemand einen Vorschlag oder so für mich hat, wenn möglich nicht allzu kompliziert, da ich nicht viel mit Gentoo arbeite (habe den Server ja auch recht lange vernachlässig). Im Vorraus schonmal Danke
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Wed Aug 02, 2006 3:21 pm    Post subject: Reply with quote

/etc/mysql/my.cnf

Code:
[mysqld]
character-set-server            = latin1
default-character-set           = latin1
init-connect='SET NAMES latin1'


sollte das problem erledigen
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
Fattinger
n00b
n00b


Joined: 22 Jan 2006
Posts: 9

PostPosted: Thu Aug 03, 2006 11:41 am    Post subject: Reply with quote

wäre schön wenn...das habe ich ja auch schon den Foren nachgelesen - geht leider nicht
Back to top
View user's profile Send private message
STiGMaTa_ch
Veteran
Veteran


Joined: 28 Dec 2004
Posts: 1686
Location: Rüti ZH / Schweiz

PostPosted: Thu Aug 03, 2006 4:44 pm    Post subject: Reply with quote

Fattinger wrote:
wäre schön wenn...das habe ich ja auch schon den Foren nachgelesen - geht leider nicht

Du hast aber nach dem ändern der Zeilen schon ein /etc/init.d/mysql restart gemacht oder? (Vergiss man ganz schnell einmal im Eifer des gefechtes..)

Lieber Gruss
STiGMaTa
_________________
Ich bin Schuldknappe. Das bedeutet ich bin immer an allem Schuld. Und das nicht zu knapp! | Der alltägliche Familienwahnsinn auf meinem BLOG
Back to top
View user's profile Send private message
Fattinger
n00b
n00b


Joined: 22 Jan 2006
Posts: 9

PostPosted: Thu Aug 03, 2006 6:22 pm    Post subject: Reply with quote

So oft, wie in letzter Zeit wurde mysql noch nie restartet :-> Aber trotzdem danke. Also meine my.cnf sieht so aus...ich denke mal nicht das ich da einen Fehler drinne habe - stand ja auch so im Forum[/quote]
Code:

[mysql]
character-sets-dir=latin1
default-character-set=latin1

[mysqladmin]
character-sets-dir=latin1
default-character-set=latin1

[mysqlcheck]
character-sets-dir=latin1
default-character-set=latin1

[mysqldump]
character-sets-dir=latin1
default-character-set=latin1

[mysqlimport]
character-sets-dir=latin1
default-character-set=latin1

[mysqlshow]
character-sets-dir=latin1
default-character-set=latin1

[myisamchk]
character-sets-dir=latin1

[myisampack]
character-sets-dir=latin1

# use [safe_mysqld] with mysql-3
[mysqld_safe]
err-log                                         = /var/log/mysql/mysql.err

# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations
[mysqld]
character-set-server            = latin1
default-character-set           = latin1
init-connect='SET NAMES latin1'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum