Also das Problem liegt nicht am Javascript oder dem RTE-Editor, sondern an der Zeichenkodierung der Datenbank. Die Zeichenkodierung der Datenbank wird standardmäßig immer passend zur Sprache eingestellt, die man während der Installation angibt bzw. im Backend verwendet.
Für Deutsch wird also als Standard wahrscheinlich ISO 8859-1 als Kodierung genommen. In diesem Zeichensatz sind zwar die Umlaute enthalten, jedoch nicht die typografischen Anführungszeichen (welche Word verwendet), ebensowenig die langen Gedankenstriche + einige andere Sonderzeichen.
Deshalb kommt die DB mit diesen Zeichen nicht klar und das Frontend kann sie nicht richtig darstellen, selbst wenn die Webseite UTF-8 verwendet.
Um die Datenbank auf UTF-8 umzustellen ruft ihr das Installations-Tool auf und geht dort auf "All Configuration". Über Strg-F sucht ihr nach dem Eintrag "[forcecharset]" und gebt dort einfach "utf-8" an.
Nach dieser Umstellung kann man/ der Kunde nun seine Texte bequem in Word schreiben und sie anschließend in den RT-Editor einfügen.
Doch Vorsicht: Alle Umlaute, die bisher in der Datenbank stehen, können nach dieser Änderung nicht mehr richtig dargestellt werden und müssen manuell nochmals eingegeben/ geändert werden!
Hier noch eine Anleitung aus 'ner Mailingliste, wie ihr die Datenbank umstellen könnt, wenn ihr die Umlaute im Nachhinein nicht anpassen wollt bzw. sie auch nach der Umstellung noch richtig dargestellt werden sollen:
Zitat:
I just know the hard way to have a fully utf-8 database:
1.) dump data / make sure the dumpfile is utf-8 encoded
(if not type "recode LATIN1..UTF8 <dumpfile>")
2.) search and replace the Charset of the create-table syntax in utf8
(replace "latin1" with "utf8")
3.) drop the old typo3 database
4.) create new database: create database typo3 default character set utf8
5.) insert dumpfile
6.) mysql's charset should be utf8 too, therefore I think exist and
compileoption but this is also possible:
edit file /etc/my.cnf
Insert:
[client]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8
7.)Set in TYPO3-Installtool > All Configuration > [forceCharset] = utf-8
8.) restart mysqld.
It depends also on compileoptions but You can modify startcommand with
"--default-character-set=utf8"
(mysqld_safe --default-character-set=utf8 <..other options..>)
9) Check mysql varibles with "show variables;" in mysql commandline.
Also you can check if charset was correctly detected as utf8 in the browser
Other problems:
10) If you use TV it is neccessary to recode the templates to utf-8 too
(and remap afterwards)
11) indexed_serach index seems not to work; so clear all index tables
12) as I know there are errors if someone trys to insert non-utf8
characters in the database. So maybe there are extensions with trouble
on that.
|
Ich habe die Anleitung nicht ausprobiert, da ich mich mit SQL nicht auskenne, also keine Gewährleistung, dass das funktioniert! ;-)
Gruß,
Micha