<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.stephanschlegel.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=94.216.227.24</id>
	<title>Wikizone - Benutzerbeiträge [de]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stephanschlegel.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=94.216.227.24"/>
	<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Spezial:Beitr%C3%A4ge/94.216.227.24"/>
	<updated>2026-05-06T14:33:22Z</updated>
	<subtitle>Benutzerbeiträge</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=Kommunikation_von_zwei_Flash_Instanzen&amp;diff=18711</id>
		<title>Kommunikation von zwei Flash Instanzen</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Kommunikation_von_zwei_Flash_Instanzen&amp;diff=18711"/>
		<updated>2010-11-29T11:15:31Z</updated>

		<summary type="html">&lt;p&gt;94.216.227.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flash Filme können über ein Verbindungsobjekt miteinander kommunizieren. Am einfachsten geht das, wenn sie sich auf dem gleichen Rechner / Server befinden. Ansonsten gelten andere Sicherheitsrichtlinien.&lt;br /&gt;
&lt;br /&gt;
== Quickstart ==&lt;br /&gt;
&lt;br /&gt;
Wir erzeugen zwei Filme. Einer dient als Sender und der andere als Empfänger&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Der Empfänger&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Der Empfänger benötigt ein Verbindungsobjekt, eine Verbindung und eine Funktion die über die Verbindung angesprochen wird.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 // &amp;#039;&amp;#039;&amp;#039;Verbindungsobject&amp;#039;&amp;#039;&amp;#039; mit Namen Verbindung_lc erzeugen&lt;br /&gt;
var Verbindung_lc:LocalConnection = new LocalConnection(); &lt;br /&gt;
&lt;br /&gt;
// Eine Funktion für das Verbindungsobjekt definieren - hier schreibe Text in das Textfeld &amp;quot;output_txt&amp;quot;&lt;br /&gt;
Verbindung_lc.schreibeText = function(Text:String) { &lt;br /&gt;
	output_txt.text = Text;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// Eine Verbindung mit dem Namen &amp;quot;meineVerbindung&amp;quot; &lt;br /&gt;
Verbindung_lc.connect(&amp;quot;meineVerbindung&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Das Textfeld zur Ausgabe des zu Empfangenen Textes erzeugen&lt;br /&gt;
this.createTextField(&amp;quot;output_txt&amp;quot;, 1, 5, 5, 200, 60);&lt;br /&gt;
output_txt.border = true;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Der Sender&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Der Sender benötig ein Verbindungsobjekt, eine Verbindung (die selbe wie oben) und eine Angabe welche Funktion mit welchen Parametern er beim Empfänger auslösen soll.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// Ein Texteingabefeld erzeugen&lt;br /&gt;
var input_txt:TextField = this.createTextField(&amp;quot;input_txt&amp;quot;, 666, 5, 5 , 200,60);&lt;br /&gt;
input_txt.type = &amp;quot;input&amp;quot;;&lt;br /&gt;
input_txt.border = true&lt;br /&gt;
//////////////////////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
// Ein Senden Button &lt;br /&gt;
var SendButton_mc:MovieClip = this.createEmptyMovieClip(&amp;quot;SendButton_mc&amp;quot;, 667);&lt;br /&gt;
with(SendButton_mc){&lt;br /&gt;
	_x = 5;&lt;br /&gt;
	_y = 70;&lt;br /&gt;
	lineStyle(0.25,0x0000,100);&lt;br /&gt;
	beginFill(0xFFFFFF,100);&lt;br /&gt;
	lineTo(200,0);&lt;br /&gt;
	lineTo(200,20);&lt;br /&gt;
	lineTo(0,20);&lt;br /&gt;
	lineTo(0,0);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Das Textformat für den Send-Button&lt;br /&gt;
var labelFormat:TextFormat = new TextFormat();&lt;br /&gt;
labelFormat.align = &amp;quot;center&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
var label_txt:TextField = this.createTextField(&amp;quot;input_txt&amp;quot;, 668, 5, 70 , 200,20);&lt;br /&gt;
label_txt.selectable = false&lt;br /&gt;
label_txt.setNewTextFormat(labelFormat)&lt;br /&gt;
label_txt.text = &amp;quot;send message to other file&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Nun das Verbindungsobject für diesen Film&lt;br /&gt;
var Verbindung_lc:LocalConnection = new LocalConnection();&lt;br /&gt;
&lt;br /&gt;
// Nun senden wir Daten über die Verbindung, von diesem Film in den anderen&lt;br /&gt;
// Wir führen die im 1. Film definierte Funktion aus und übergeben als Parameter&lt;br /&gt;
// den Inhalt des Texteingabefelds;&lt;br /&gt;
SendButton_mc.onRelease = function(){&lt;br /&gt;
	Verbindung_lc.send(&amp;quot;Verbindung&amp;quot;, &amp;quot;schreibeText&amp;quot;, input_txt.text);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>94.216.227.24</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=TYPO3_auf_utf-8_umstellen&amp;diff=18700</id>
		<title>TYPO3 auf utf-8 umstellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=TYPO3_auf_utf-8_umstellen&amp;diff=18700"/>
		<updated>2010-11-29T11:01:54Z</updated>

		<summary type="html">&lt;p&gt;94.216.227.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Links ==&lt;br /&gt;
Artikel aus dem t3n Magazin&lt;br /&gt;
[[http://t3n.de/magazin/mysql-typo3-utf-8-umstellen-tipps-wechsel-latin1-utf-8-220945/]]&lt;br /&gt;
&lt;br /&gt;
Guter Überblick im TYPO3 Wiki&lt;br /&gt;
[[http://wiki.typo3.org/index.php/UTF-8_support]] Der hier vorliegende Text ist eine Übersetzung des dortigen Textes.&lt;br /&gt;
&lt;br /&gt;
== Überblick / Overview ==&lt;br /&gt;
Verarbeitungskette prüfen vhost.conf - php.ini - my.cnf&lt;br /&gt;
&lt;br /&gt;
Wichtige Einstellung die leicht übersehen wird:&lt;br /&gt;
&lt;br /&gt;
Install Tool: Unter „All Configuration“ muss nun „[forceCharset]“ auf „utf-8“ und „[setDBinit]“ den Eintrag „SET NAMES utf8;“ erhalten. Der zusätzliche Eintrag „SET CHARACTER_SET utf8;“, der dem Feld „[setDBinit]“ hinzugefügt werden kann, ist oft nicht notwendig.&lt;br /&gt;
&lt;br /&gt;
=== Verarbeitungskette ===&lt;br /&gt;
Zuerst mal testen ob in der Verarbeitungskette überall utf-8 für die Übertragung von Daten verwendet wird:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Apache: vhost.conf ====&lt;br /&gt;
&lt;br /&gt;
AddDefaultCharset UTF-8&lt;br /&gt;
&lt;br /&gt;
Dies ist für TYPO3 Versionen spätestens ab 4.3 nicht notwendig. Wenn man hier im Install Tool &amp;#039;&amp;#039;[BE][forceCharset]&amp;#039;&amp;#039; gesetzt hat&lt;br /&gt;
&lt;br /&gt;
Kann einfach getestet werden indem man sich die Header Daten einer Seite mit Firebug oder LiveHTTPTracker anschaut. Darin sollte eine Zeile in dieser Art enthalten sein:&lt;br /&gt;
&lt;br /&gt;
 Content-Type: text/html; charset=utf-8&lt;br /&gt;
&lt;br /&gt;
==== PHP: php.ini ====&lt;br /&gt;
 default_charset = &amp;quot;utf-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Mit dieser Einstellung sollten auch standalone Skripte mit dem richtigen Zeichensatz arbeiten. Man kann in den Skripten aber auch &lt;br /&gt;
&lt;br /&gt;
Außerdem sollte mit der Erweiterung mbstring oder iconf gearbeitet werden. Deren Performance ist wesentlich besser als die Umwandlung über den PHP-Code von TYPO3 (s.u.)&lt;br /&gt;
&lt;br /&gt;
==== MySQL: my.cnf ====&lt;br /&gt;
Die folgende Einstellung setzt alle System Variablen für Zeichensätze und Kollationen für den MySQL SERVER. Dies betrifft also auch existierende Datenbanken. Deshalb sollte diese Einstellung nur gesetzt werden wenn ausschließlich mit utf-8 Datenbanken gearbeitet wird.&lt;br /&gt;
&lt;br /&gt;
Man benötigt die Einstellung nicht wenn im Install Tool &amp;#039;&amp;#039;[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;]&amp;#039;&amp;#039;  gesetzt ist.&lt;br /&gt;
&lt;br /&gt;
=== TYPO3 Einstellungen ===&lt;br /&gt;
&lt;br /&gt;
==== localconf.php ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// For backend charset&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
// For GIFBUILDER support&lt;br /&gt;
// Set it to &amp;#039;iconv&amp;#039; or &amp;#039;mbstring&amp;#039;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;t3lib_cs_convMethod&amp;#039;] = &amp;#039;mbstring&amp;#039;;&lt;br /&gt;
// For &amp;#039;iconv&amp;#039; support you need at least PHP 5!&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;t3lib_cs_utils&amp;#039;] = &amp;#039;mbstring&amp;#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweise:&lt;br /&gt;
* Wenn die Datenbank auf  UTF-8 gesetzt ist, sollte man &amp;#039;&amp;#039;&amp;#039;nicht die Einstellung $TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;multiplyDBfieldSize&amp;#039;] setzen&amp;#039;&amp;#039;&amp;#039;. Diese wird nur benötigt, wenn die Datenbank mit latin 1 arbeitet aber der Inhalt  utf-8 ist. Außerdem führt die Einstellung des öfteren zu Problemen.&lt;br /&gt;
*  $TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;; Setzt folgende 3 Einstellungen:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 SET character_set_client = utf8; &lt;br /&gt;
 SET character_set_results = utf8; &lt;br /&gt;
 SET character_set_connection = utf8; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Wenn &amp;#039;&amp;#039;&amp;#039;in phpMyAdmin Sonderzeichen als 2 seltsame Zeichen&amp;#039;&amp;#039;&amp;#039; angezeigt werden, reicht diese Einstellung nicht. Zuerst müssen die Inhaltstabellen konvertiert werden (oder löschen, umstellen, neu eingeben.&lt;br /&gt;
&lt;br /&gt;
* In &amp;#039;&amp;#039;&amp;#039;manchen Konfigurationen&amp;#039;&amp;#039;&amp;#039; muß man auch noch eine &amp;#039;&amp;#039;&amp;#039;Einstellung für die Sessions&amp;#039;&amp;#039;&amp;#039; machen:&lt;br /&gt;
&lt;br /&gt;
 SET NAMES utf8;&lt;br /&gt;
 SET SESSION character_set_server=utf8;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Benutze niemals SET CHARACTER SET utf8;&amp;#039;&amp;#039;&amp;#039; Dies kann große Probleme im TYPO3 Umfeld erzeugen. Mit der Einstellung SET NAMES hat sich das ohnehin erledigt, weil hier eigentlich die wichtigen Einstellungen gemacht werden&lt;br /&gt;
&lt;br /&gt;
* Wenn [BE][forceCharset] auf utf-8 gesetzt ist (siehe oben), dann wird auch &amp;#039;&amp;#039;config.renderCharset&amp;#039;&amp;#039; und &amp;#039;&amp;#039;config.metaCharset&amp;#039;&amp;#039; per default mit utf-8 arbeiten. Deshalb müssen hier keine Einstellungen mehr gemacht werden.&lt;br /&gt;
&lt;br /&gt;
=== Extensions ===&lt;br /&gt;
&lt;br /&gt;
==== RealURL ====&lt;br /&gt;
&lt;br /&gt;
One problem is that RealURL might not be able to understand a page title if it is in unusual (i.e. not Roman) characters. For example, with a page title in Japanese, I found that the title was not interpreted and the page was rendered as jp.html. Using the Navigation title solves this problem (to follow on the example, setting &amp;quot;home&amp;quot; as the Navigation title, my page was then rendered as jp/home.html).&lt;br /&gt;
&lt;br /&gt;
==== TemplaVoila ====&lt;br /&gt;
&lt;br /&gt;
Templates müssen im UTF-8 Format gespeichert werden. Möglicherweise muß neu gemappt werden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Weitere Hinweise ===&lt;br /&gt;
&lt;br /&gt;
==== Extensions sollten nicht strlen() benutzen====&lt;br /&gt;
Stattdessen sollte die Funktion t3lib_cs benutzt werden.&lt;br /&gt;
&lt;br /&gt;
strlen() doesn&amp;#039;t care for UTF-8. UTF-8 uses 1 to 3 Bytes for one char, so using strlen() will likely lead to wrong results. Extensions should instead use the functions provided in t3lib_cs.&lt;br /&gt;
&lt;br /&gt;
==== Sortierung ====&lt;br /&gt;
It is highly recommended (although not strictly necessary) to use UTF-8 in the database. Otherwise database sorting functions will not work correctly.&lt;br /&gt;
[edit] Problem with indeces&lt;br /&gt;
&lt;br /&gt;
==== Fehlermeldung Specified key was too long bei indizes====&lt;br /&gt;
&lt;br /&gt;
SQL=Specified key was too long; max key length is 1000 bytes:&lt;br /&gt;
&lt;br /&gt;
This particular problem might occur when you are using UTF-8 encoding. UTF-8 uses up to 3 bytes per character, and the maximum index length is 1000 bytes, so the effective maximum index is 1000/3 = 333 characters. Some tables are longer than this, hence the error (many other packages are being bitten by this issue too).&lt;br /&gt;
&lt;br /&gt;
To solve this, simply remove the index from that field and reload.&lt;br /&gt;
&lt;br /&gt;
Note: Using indeces that big anyway is not recommended and shows bad DB design.&lt;br /&gt;
[edit] Convert an already existing database to UTF-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Konvertierung einer bestehenden Datenbank ===&lt;br /&gt;
Some links to the conversion topic:&lt;br /&gt;
&lt;br /&gt;
    * http://dev.mysql.com/doc/refman/4.1/en/charset-convert.html (MySQL based conversion)&lt;br /&gt;
    * http://www.typo3-media.com/blog/article/utf8-and-typo3-updated.html&lt;br /&gt;
    * http://m.tacker.org/blog/64.script-to-convert-wordpress-content-encoding.html (useful PHP script to convert charsets) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[edit] Possibility 1&lt;br /&gt;
Note 	This has been tested and works!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Jigal van Hemert wrote a script, which can convert your database to utf-8. He offers it for download here: [[http://www.xs4all.nl/~dcbjht/typo3/db_utf8_fix.zip]] . This script converts all columns, tables and finally the setting for the whole database to utf-8.&lt;br /&gt;
&lt;br /&gt;
Jigal writes:&lt;br /&gt;
&lt;br /&gt;
Read the following very carefully, because you have to make a few adjustments depending on the situation!&lt;br /&gt;
&lt;br /&gt;
    * Make a backup of your database before you do such a conversion. &lt;br /&gt;
&lt;br /&gt;
    * The script was meant for the situation where utf-8 encoded data was stored in latin-1 (or other charsets) tables. This was very common in 2008. You can recognize this by looking in PHPmyAdmin and you find that characters with accents (diacriticals) are shown as weird double-character combinations:&lt;br /&gt;
      Instead of &amp;quot;Ali Gökgöz and Gültekin Tarcan&amp;quot; it shows as &amp;quot;Ali GÃ¶kgÃ¶z and GÃ¼ltekin Tarcan&amp;quot;.&lt;br /&gt;
      If this is *not* the case in your situation, turn lines 97 - 107 into comments by putting // in front of them. &lt;br /&gt;
&lt;br /&gt;
    * In line 19 of the script it says define(&amp;quot;SIMULATE&amp;quot;, TRUE); This makes sure that the tables are not really converted, it&amp;#039;s just a practice run; a simulation. After you executed the script at least once and there are no errors you can turn this into define(&amp;quot;SIMULATE&amp;quot;, FALSE); to do the conversion for real. &lt;br /&gt;
&lt;br /&gt;
    * Put the script in a subdirectory of the TYPO3 installation, for example inside &amp;#039;fileadmin&amp;#039;. It is designed to run from a subdirectory so it can pick up the database connection data from localconf.php. &lt;br /&gt;
&lt;br /&gt;
    * Run the script from your browser: http://domain.ext/fileadmin/db_utf8_fix.php It shows each table it found and after the name of a table a dot for each column it has converted. &lt;br /&gt;
&lt;br /&gt;
    * It really doesn&amp;#039;t matter if there are columns/tables already in utf-8 format. &lt;br /&gt;
&lt;br /&gt;
 Settings in TYPO3 &lt;br /&gt;
&lt;br /&gt;
Furthermore, if you use the following settings in the Install Tool you should have a UTF-8 installation:&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
 Possibility 2&lt;br /&gt;
&lt;br /&gt;
Dump your database, modifiy the dumped file and import it again.&lt;br /&gt;
Note 	If you do it that way, setting [&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] might cause broken special chars inside TYPO3. See below for more information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Requirements:&lt;br /&gt;
&lt;br /&gt;
    * Shell access to your unix based server&lt;br /&gt;
    * &amp;quot;Sed&amp;quot; package installed on the server &lt;br /&gt;
&lt;br /&gt;
For this example we assume:&lt;br /&gt;
&lt;br /&gt;
    * hostname: domain.com&lt;br /&gt;
    * database: typo3 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example is for linux users. If your PC uses Windows, you can do the same using putty.exe. Enter the hostname in the field &amp;quot;Host Name (or IP adress)&amp;quot; and click on &amp;quot;Open&amp;quot;. Then enter your ssh username, press enter and enter the password (which will not be displayed) and press enter. Then you are connected to the server.&lt;br /&gt;
&lt;br /&gt;
Linux users connect to the server via ssh typing&lt;br /&gt;
&lt;br /&gt;
ssh -l (user) domain.com&lt;br /&gt;
&lt;br /&gt;
Create a backup of the database (for security reasons if things go wrong...)&lt;br /&gt;
&lt;br /&gt;
mysqldump -u (user) -p(pass) --max_allowed_packet=10000000 typo3 &amp;gt; typo3_backup.sql&lt;br /&gt;
&lt;br /&gt;
Dump database (without table typo3.sys_refindex. This prevents the following error: SQL=Specified key was too long; max key length is 1000 bytes. You have to rebuild the reference index afterwards!)&lt;br /&gt;
&lt;br /&gt;
mysqldump -u (user) -p(pass) --max_allowed_packet=10000000 --ignore-table=typo3.sys_refindex  typo3  &amp;gt; typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Now modifiy the dump: Newer versions of MySQL (at least 5.0) also save the collation for each column seperately. You have to convert all of them:&lt;br /&gt;
&lt;br /&gt;
First convert all occurences of &amp;quot;DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci&amp;quot; (use the character set which you have written in your file) in typo3_utf8.sql to &amp;quot;DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
sed  -e &amp;#039;s/DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci/DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci/g&amp;#039; -i typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Then convert all occurences of &amp;quot;COLLATE latin1_german1_ci&amp;quot; (use the charset you have written in your file) to &amp;quot;COLLATE utf8_general_ci&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
sed  -e &amp;#039;s/COLLATE latin1_german1_ci/COLLATE utf8_general_ci/g&amp;#039; -i typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Import database&lt;br /&gt;
&lt;br /&gt;
mysql -u (user) -p(pass) --default-character-set=utf8  typo3 &amp;lt; typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Alter character set and collation for the whole database&lt;br /&gt;
&lt;br /&gt;
mysql -u (user) -p(pass) -e &amp;quot;ALTER DATABASE typo3 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[edit] Settings in TYPO3&lt;br /&gt;
&lt;br /&gt;
Furthermore, if you use the following settings in the Install Tool you should have a UTF-8 installation:&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
[edit] Broken special chars?&lt;br /&gt;
&lt;br /&gt;
If the result of the above mentioned is that special chars are displayed incorrectly in TYPO3 (a small black box with a question mark in it instead of the special char), the following might help:&lt;br /&gt;
&lt;br /&gt;
Create a new database. Make sure that it uses utf8 as default charset and utf8_general_ci as collation:&lt;br /&gt;
&lt;br /&gt;
mysql -user (user) -password(password) -e &amp;quot;ALTER DATABASE (new-db) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Then import the dump into that database without using sed to replace the occurences of latin1 (or what you have) with utf8.&lt;br /&gt;
&lt;br /&gt;
The result will be that the tables and columns in your database still use latin1 (or what you had before).&lt;br /&gt;
&lt;br /&gt;
This might be a problem, e.g. when you now add new tables to this database, they will use utf8 as charset, because the database is set to utf8. This will lead to a mix of both charsets in your DB.&lt;br /&gt;
[edit] Possibility 3&lt;br /&gt;
&lt;br /&gt;
This might be the way to go for german speaking users with a Unix server:&lt;br /&gt;
&lt;br /&gt;
A way similar to possibility 2 is recommended by t3n (german).&lt;br /&gt;
&lt;br /&gt;
Basically they make the dump and replace the charset and collation statements.&lt;br /&gt;
&lt;br /&gt;
Then they use iconv on the dumped file to convert the signs inside:&lt;br /&gt;
&lt;br /&gt;
iconv -f iso-8859-1 -t utf8 dump.sql &amp;gt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
After that they import the file using the switch --default-character-set=utf8:&lt;br /&gt;
&lt;br /&gt;
mysql -u USER -p PASSWORT -h HOST --default-character-set=utf8 DB &amp;lt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note 	If you did that and get umlauts displayed correctly, but ß and € displayed wrong inside TYPO3, you should use CP1252 in the iconv command as origin charset like that:&lt;br /&gt;
&lt;br /&gt;
iconv -f CP1252 -t utf8 dump.sql &amp;gt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
=== Filesystem ===&lt;br /&gt;
&lt;br /&gt;
When setting [BE][forceCharset] all files in the TYPO3 root folder and below are handled as UTF-8 files by TYPO3; so you should make sure that they really are. You should e.g. check your HTML-Templates and CSS files for special chars like umlauts. If they are displayed incorrectly, you should fix that by saving the file in UTF-8 format.&lt;br /&gt;
&lt;br /&gt;
When editing such files only use editors which can save files in UTF-8 format. That is any editor on Linux and e.g. Notepad++ if you use Windows.&lt;br /&gt;
&lt;br /&gt;
Attention: Do not save the files in UTF-8 format with Byte Order Mark (BOM). Saving them as UTF-8 with BOM can cause problems, e.g. thumbnails in the BE will no longer be shown. Save the files in ANSI format (as UTF-8 without BOM) instead.&lt;br /&gt;
[edit] t3lib_cs&lt;br /&gt;
&lt;br /&gt;
Developers: Use these functions e.g. to get the length of a string. strlen doesn&amp;#039;t get the correct string-length, because the chars of UTF-8 can have 1...3 Bytes.&lt;br /&gt;
&lt;br /&gt;
In PHP 5.3 PECL/intl will be available, so maybe the TYPO3 Core-Developers switch to this.&lt;br /&gt;
[edit] Use unicode fonts&lt;br /&gt;
&lt;br /&gt;
If you use Gifbuilder to create some lines of text (e.g. in a menu) make sure that the font file you use is unicode. More info here.&lt;br /&gt;
&lt;br /&gt;
If there still are problems with broken special chars in these images, you should make sure that the configuration for mb_string or iconv (the one which you set in the Install Tool) is set to UTF-8. You can check that in phpinfo() and correct the settings in php.ini or .htaccess, if needed.&lt;br /&gt;
[edit] HTML Tidy&lt;br /&gt;
&lt;br /&gt;
If you are having problems with html entities like &amp;amp;nbsp; shown as ? in the browser, add the -utf8 option to the HTML tidy_path variable in the install tool, e.g.&lt;br /&gt;
&lt;br /&gt;
 $TYPO3_CONF_VARS[&amp;#039;FE&amp;#039;][&amp;#039;tidy_path&amp;#039;] = &amp;#039;tidy -i --quiet true --tidy-mark true -wrap 0 -raw --output-xhtml true -utf8&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== External links ====&lt;br /&gt;
&lt;br /&gt;
    * http://dev.mysql.com/doc/refman/5.0/en/charset.html&lt;br /&gt;
    * http://en.opensuse.org/SDB%3AConverting_Files_or_File_Names_to_UTF-8_Encoding&lt;br /&gt;
    * How to change the encoding like iso-8859-1, iso-8859-15, utf-8 of files: http://linuxwiki.de/tcs (just in german in the moment)&lt;/div&gt;</summary>
		<author><name>94.216.227.24</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=TYPO3_auf_utf-8_umstellen&amp;diff=17548</id>
		<title>TYPO3 auf utf-8 umstellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=TYPO3_auf_utf-8_umstellen&amp;diff=17548"/>
		<updated>2010-11-29T11:00:21Z</updated>

		<summary type="html">&lt;p&gt;94.216.227.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Links == &lt;br /&gt;
Artikel aus dem t3n Magazin&lt;br /&gt;
[[http://t3n.de/magazin/mysql-typo3-utf-8-umstellen-tipps-wechsel-latin1-utf-8-220945/]]&lt;br /&gt;
&lt;br /&gt;
Guter Überblick im TYPO3 Wiki&lt;br /&gt;
[[http://wiki.typo3.org/index.php/UTF-8_support]] Der hier vorliegende Text ist eine Übersetzung des dortigen Textes.&lt;br /&gt;
&lt;br /&gt;
== Überblick / Overview ==&lt;br /&gt;
Verarbeitungskette prüfen vhost.conf - php.ini - my.cnf&lt;br /&gt;
&lt;br /&gt;
Wichtige Einstellung die leicht übersehen wird:&lt;br /&gt;
&lt;br /&gt;
Install Tool: Unter „All Configuration“ muss nun „[forceCharset]“ auf „utf-8“ und „[setDBinit]“ den Eintrag „SET NAMES utf8;“ erhalten. Der zusätzliche Eintrag „SET CHARACTER_SET utf8;“, der dem Feld „[setDBinit]“ hinzugefügt werden kann, ist oft nicht notwendig.&lt;br /&gt;
&lt;br /&gt;
=== Verarbeitungskette ===&lt;br /&gt;
Zuerst mal testen ob in der Verarbeitungskette überall utf-8 für die Übertragung von Daten verwendet wird:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Apache: vhost.conf ====&lt;br /&gt;
&lt;br /&gt;
AddDefaultCharset UTF-8&lt;br /&gt;
&lt;br /&gt;
Dies ist für TYPO3 Versionen spätestens ab 4.3 nicht notwendig. Wenn man hier im Install Tool &amp;#039;&amp;#039;[BE][forceCharset]&amp;#039;&amp;#039; gesetzt hat&lt;br /&gt;
&lt;br /&gt;
Kann einfach getestet werden indem man sich die Header Daten einer Seite mit Firebug oder LiveHTTPTracker anschaut. Darin sollte eine Zeile in dieser Art enthalten sein:&lt;br /&gt;
&lt;br /&gt;
 Content-Type: text/html; charset=utf-8&lt;br /&gt;
&lt;br /&gt;
==== PHP: php.ini ====&lt;br /&gt;
 default_charset = &amp;quot;utf-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Mit dieser Einstellung sollten auch standalone Skripte mit dem richtigen Zeichensatz arbeiten. Man kann in den Skripten aber auch &lt;br /&gt;
&lt;br /&gt;
Außerdem sollte mit der Erweiterung mbstring oder iconf gearbeitet werden. Deren Performance ist wesentlich besser als die Umwandlung über den PHP-Code von TYPO3 (s.u.)&lt;br /&gt;
&lt;br /&gt;
==== MySQL: my.cnf ====&lt;br /&gt;
Die folgende Einstellung setzt alle System Variablen für Zeichensätze und Kollationen für den MySQL SERVER. Dies betrifft also auch existierende Datenbanken. Deshalb sollte diese Einstellung nur gesetzt werden wenn ausschließlich mit utf-8 Datenbanken gearbeitet wird.&lt;br /&gt;
&lt;br /&gt;
Man benötigt die Einstellung nicht wenn im Install Tool &amp;#039;&amp;#039;[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;]&amp;#039;&amp;#039;  gesetzt ist.&lt;br /&gt;
&lt;br /&gt;
=== TYPO3 Einstellungen ===&lt;br /&gt;
&lt;br /&gt;
==== localconf.php ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// For backend charset&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
// For GIFBUILDER support&lt;br /&gt;
// Set it to &amp;#039;iconv&amp;#039; or &amp;#039;mbstring&amp;#039;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;t3lib_cs_convMethod&amp;#039;] = &amp;#039;mbstring&amp;#039;;&lt;br /&gt;
// For &amp;#039;iconv&amp;#039; support you need at least PHP 5!&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;t3lib_cs_utils&amp;#039;] = &amp;#039;mbstring&amp;#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweise:&lt;br /&gt;
* Wenn die Datenbank auf  UTF-8 gesetzt ist, sollte man &amp;#039;&amp;#039;&amp;#039;nicht die Einstellung $TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;multiplyDBfieldSize&amp;#039;] setzen&amp;#039;&amp;#039;&amp;#039;. Diese wird nur benötigt, wenn die Datenbank mit latin 1 arbeitet aber der Inhalt  utf-8 ist. Außerdem führt die Einstellung des öfteren zu Problemen.&lt;br /&gt;
*  $TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;; Setzt folgende 3 Einstellungen:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 SET character_set_client = utf8; &lt;br /&gt;
 SET character_set_results = utf8; &lt;br /&gt;
 SET character_set_connection = utf8; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Wenn &amp;#039;&amp;#039;&amp;#039;in phpMyAdmin Sonderzeichen als 2 seltsame Zeichen&amp;#039;&amp;#039;&amp;#039; angezeigt werden, reicht diese Einstellung nicht. Zuerst müssen die Inhaltstabellen konvertiert werden (oder löschen, umstellen, neu eingeben.&lt;br /&gt;
&lt;br /&gt;
* In &amp;#039;&amp;#039;&amp;#039;manchen Konfigurationen&amp;#039;&amp;#039;&amp;#039; muß man auch noch eine &amp;#039;&amp;#039;&amp;#039;Einstellung für die Sessions&amp;#039;&amp;#039;&amp;#039; machen:&lt;br /&gt;
&lt;br /&gt;
 SET NAMES utf8;&lt;br /&gt;
 SET SESSION character_set_server=utf8;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Benutze niemals SET CHARACTER SET utf8;&amp;#039;&amp;#039;&amp;#039; Dies kann große Probleme im TYPO3 Umfeld erzeugen. Mit der Einstellung SET NAMES hat sich das ohnehin erledigt, weil hier eigentlich die wichtigen Einstellungen gemacht werden&lt;br /&gt;
&lt;br /&gt;
* Wenn [BE][forceCharset] auf utf-8 gesetzt ist (siehe oben), dann wird auch &amp;#039;&amp;#039;config.renderCharset&amp;#039;&amp;#039; und &amp;#039;&amp;#039;config.metaCharset&amp;#039;&amp;#039; per default mit utf-8 arbeiten. Deshalb müssen hier keine Einstellungen mehr gemacht werden.&lt;br /&gt;
&lt;br /&gt;
=== Extensions ===&lt;br /&gt;
&lt;br /&gt;
==== RealURL ====&lt;br /&gt;
&lt;br /&gt;
One problem is that RealURL might not be able to understand a page title if it is in unusual (i.e. not Roman) characters. For example, with a page title in Japanese, I found that the title was not interpreted and the page was rendered as jp.html. Using the Navigation title solves this problem (to follow on the example, setting &amp;quot;home&amp;quot; as the Navigation title, my page was then rendered as jp/home.html).&lt;br /&gt;
&lt;br /&gt;
==== TemplaVoila ====&lt;br /&gt;
&lt;br /&gt;
Templates müssen im UTF-8 Format gespeichert werden. Möglicherweise muß neu gemappt werden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Weitere Hinweise ===&lt;br /&gt;
&lt;br /&gt;
==== Extensions sollten nicht strlen() benutzen====&lt;br /&gt;
Stattdessen sollte die Funktion t3lib_cs benutzt werden.&lt;br /&gt;
&lt;br /&gt;
strlen() doesn&amp;#039;t care for UTF-8. UTF-8 uses 1 to 3 Bytes for one char, so using strlen() will likely lead to wrong results. Extensions should instead use the functions provided in t3lib_cs.&lt;br /&gt;
&lt;br /&gt;
==== Sortierung ====&lt;br /&gt;
It is highly recommended (although not strictly necessary) to use UTF-8 in the database. Otherwise database sorting functions will not work correctly.&lt;br /&gt;
[edit] Problem with indeces&lt;br /&gt;
&lt;br /&gt;
==== Fehlermeldung Specified key was too long bei indizes====&lt;br /&gt;
&lt;br /&gt;
SQL=Specified key was too long; max key length is 1000 bytes:&lt;br /&gt;
&lt;br /&gt;
This particular problem might occur when you are using UTF-8 encoding. UTF-8 uses up to 3 bytes per character, and the maximum index length is 1000 bytes, so the effective maximum index is 1000/3 = 333 characters. Some tables are longer than this, hence the error (many other packages are being bitten by this issue too).&lt;br /&gt;
&lt;br /&gt;
To solve this, simply remove the index from that field and reload.&lt;br /&gt;
&lt;br /&gt;
Note: Using indeces that big anyway is not recommended and shows bad DB design.&lt;br /&gt;
[edit] Convert an already existing database to UTF-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Konvertierung einer bestehenden Datenbank ===&lt;br /&gt;
Some links to the conversion topic:&lt;br /&gt;
&lt;br /&gt;
    * http://dev.mysql.com/doc/refman/4.1/en/charset-convert.html (MySQL based conversion)&lt;br /&gt;
    * http://www.typo3-media.com/blog/article/utf8-and-typo3-updated.html&lt;br /&gt;
    * http://m.tacker.org/blog/64.script-to-convert-wordpress-content-encoding.html (useful PHP script to convert charsets) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[edit] Possibility 1&lt;br /&gt;
Note 	This has been tested and works!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Jigal van Hemert wrote a script, which can convert your database to utf-8. He offers it for download here: [[http://www.xs4all.nl/~dcbjht/typo3/db_utf8_fix.zip]] . This script converts all columns, tables and finally the setting for the whole database to utf-8.&lt;br /&gt;
&lt;br /&gt;
Jigal writes:&lt;br /&gt;
&lt;br /&gt;
Read the following very carefully, because you have to make a few adjustments depending on the situation!&lt;br /&gt;
&lt;br /&gt;
    * Make a backup of your database before you do such a conversion. &lt;br /&gt;
&lt;br /&gt;
    * The script was meant for the situation where utf-8 encoded data was stored in latin-1 (or other charsets) tables. This was very common in 2008. You can recognize this by looking in PHPmyAdmin and you find that characters with accents (diacriticals) are shown as weird double-character combinations:&lt;br /&gt;
      Instead of &amp;quot;Ali Gökgöz and Gültekin Tarcan&amp;quot; it shows as &amp;quot;Ali GÃ¶kgÃ¶z and GÃ¼ltekin Tarcan&amp;quot;.&lt;br /&gt;
      If this is *not* the case in your situation, turn lines 97 - 107 into comments by putting // in front of them. &lt;br /&gt;
&lt;br /&gt;
    * In line 19 of the script it says define(&amp;quot;SIMULATE&amp;quot;, TRUE); This makes sure that the tables are not really converted, it&amp;#039;s just a practice run; a simulation. After you executed the script at least once and there are no errors you can turn this into define(&amp;quot;SIMULATE&amp;quot;, FALSE); to do the conversion for real. &lt;br /&gt;
&lt;br /&gt;
    * Put the script in a subdirectory of the TYPO3 installation, for example inside &amp;#039;fileadmin&amp;#039;. It is designed to run from a subdirectory so it can pick up the database connection data from localconf.php. &lt;br /&gt;
&lt;br /&gt;
    * Run the script from your browser: http://domain.ext/fileadmin/db_utf8_fix.php It shows each table it found and after the name of a table a dot for each column it has converted. &lt;br /&gt;
&lt;br /&gt;
    * It really doesn&amp;#039;t matter if there are columns/tables already in utf-8 format. &lt;br /&gt;
&lt;br /&gt;
 Settings in TYPO3 &lt;br /&gt;
&lt;br /&gt;
Furthermore, if you use the following settings in the Install Tool you should have a UTF-8 installation:&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
 Possibility 2&lt;br /&gt;
&lt;br /&gt;
Dump your database, modifiy the dumped file and import it again.&lt;br /&gt;
Note 	If you do it that way, setting [&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] might cause broken special chars inside TYPO3. See below for more information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Requirements:&lt;br /&gt;
&lt;br /&gt;
    * Shell access to your unix based server&lt;br /&gt;
    * &amp;quot;Sed&amp;quot; package installed on the server &lt;br /&gt;
&lt;br /&gt;
For this example we assume:&lt;br /&gt;
&lt;br /&gt;
    * hostname: domain.com&lt;br /&gt;
    * database: typo3 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example is for linux users. If your PC uses Windows, you can do the same using putty.exe. Enter the hostname in the field &amp;quot;Host Name (or IP adress)&amp;quot; and click on &amp;quot;Open&amp;quot;. Then enter your ssh username, press enter and enter the password (which will not be displayed) and press enter. Then you are connected to the server.&lt;br /&gt;
&lt;br /&gt;
Linux users connect to the server via ssh typing&lt;br /&gt;
&lt;br /&gt;
ssh -l (user) domain.com&lt;br /&gt;
&lt;br /&gt;
Create a backup of the database (for security reasons if things go wrong...)&lt;br /&gt;
&lt;br /&gt;
mysqldump -u (user) -p(pass) --max_allowed_packet=10000000 typo3 &amp;gt; typo3_backup.sql&lt;br /&gt;
&lt;br /&gt;
Dump database (without table typo3.sys_refindex. This prevents the following error: SQL=Specified key was too long; max key length is 1000 bytes. You have to rebuild the reference index afterwards!)&lt;br /&gt;
&lt;br /&gt;
mysqldump -u (user) -p(pass) --max_allowed_packet=10000000 --ignore-table=typo3.sys_refindex  typo3  &amp;gt; typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Now modifiy the dump: Newer versions of MySQL (at least 5.0) also save the collation for each column seperately. You have to convert all of them:&lt;br /&gt;
&lt;br /&gt;
First convert all occurences of &amp;quot;DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci&amp;quot; (use the character set which you have written in your file) in typo3_utf8.sql to &amp;quot;DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
sed  -e &amp;#039;s/DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci/DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci/g&amp;#039; -i typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Then convert all occurences of &amp;quot;COLLATE latin1_german1_ci&amp;quot; (use the charset you have written in your file) to &amp;quot;COLLATE utf8_general_ci&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
sed  -e &amp;#039;s/COLLATE latin1_german1_ci/COLLATE utf8_general_ci/g&amp;#039; -i typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Import database&lt;br /&gt;
&lt;br /&gt;
mysql -u (user) -p(pass) --default-character-set=utf8  typo3 &amp;lt; typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Alter character set and collation for the whole database&lt;br /&gt;
&lt;br /&gt;
mysql -u (user) -p(pass) -e &amp;quot;ALTER DATABASE typo3 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[edit] Settings in TYPO3&lt;br /&gt;
&lt;br /&gt;
Furthermore, if you use the following settings in the Install Tool you should have a UTF-8 installation:&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
[edit] Broken special chars?&lt;br /&gt;
&lt;br /&gt;
If the result of the above mentioned is that special chars are displayed incorrectly in TYPO3 (a small black box with a question mark in it instead of the special char), the following might help:&lt;br /&gt;
&lt;br /&gt;
Create a new database. Make sure that it uses utf8 as default charset and utf8_general_ci as collation:&lt;br /&gt;
&lt;br /&gt;
mysql -user (user) -password(password) -e &amp;quot;ALTER DATABASE (new-db) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Then import the dump into that database without using sed to replace the occurences of latin1 (or what you have) with utf8.&lt;br /&gt;
&lt;br /&gt;
The result will be that the tables and columns in your database still use latin1 (or what you had before).&lt;br /&gt;
&lt;br /&gt;
This might be a problem, e.g. when you now add new tables to this database, they will use utf8 as charset, because the database is set to utf8. This will lead to a mix of both charsets in your DB.&lt;br /&gt;
[edit] Possibility 3&lt;br /&gt;
&lt;br /&gt;
This might be the way to go for german speaking users with a Unix server:&lt;br /&gt;
&lt;br /&gt;
A way similar to possibility 2 is recommended by t3n (german).&lt;br /&gt;
&lt;br /&gt;
Basically they make the dump and replace the charset and collation statements.&lt;br /&gt;
&lt;br /&gt;
Then they use iconv on the dumped file to convert the signs inside:&lt;br /&gt;
&lt;br /&gt;
iconv -f iso-8859-1 -t utf8 dump.sql &amp;gt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
After that they import the file using the switch --default-character-set=utf8:&lt;br /&gt;
&lt;br /&gt;
mysql -u USER -p PASSWORT -h HOST --default-character-set=utf8 DB &amp;lt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note 	If you did that and get umlauts displayed correctly, but ß and € displayed wrong inside TYPO3, you should use CP1252 in the iconv command as origin charset like that:&lt;br /&gt;
&lt;br /&gt;
iconv -f CP1252 -t utf8 dump.sql &amp;gt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
=== Filesystem ===&lt;br /&gt;
&lt;br /&gt;
When setting [BE][forceCharset] all files in the TYPO3 root folder and below are handled as UTF-8 files by TYPO3; so you should make sure that they really are. You should e.g. check your HTML-Templates and CSS files for special chars like umlauts. If they are displayed incorrectly, you should fix that by saving the file in UTF-8 format.&lt;br /&gt;
&lt;br /&gt;
When editing such files only use editors which can save files in UTF-8 format. That is any editor on Linux and e.g. Notepad++ if you use Windows.&lt;br /&gt;
&lt;br /&gt;
Attention: Do not save the files in UTF-8 format with Byte Order Mark (BOM). Saving them as UTF-8 with BOM can cause problems, e.g. thumbnails in the BE will no longer be shown. Save the files in ANSI format (as UTF-8 without BOM) instead.&lt;br /&gt;
[edit] t3lib_cs&lt;br /&gt;
&lt;br /&gt;
Developers: Use these functions e.g. to get the length of a string. strlen doesn&amp;#039;t get the correct string-length, because the chars of UTF-8 can have 1...3 Bytes.&lt;br /&gt;
&lt;br /&gt;
In PHP 5.3 PECL/intl will be available, so maybe the TYPO3 Core-Developers switch to this.&lt;br /&gt;
[edit] Use unicode fonts&lt;br /&gt;
&lt;br /&gt;
If you use Gifbuilder to create some lines of text (e.g. in a menu) make sure that the font file you use is unicode. More info here.&lt;br /&gt;
&lt;br /&gt;
If there still are problems with broken special chars in these images, you should make sure that the configuration for mb_string or iconv (the one which you set in the Install Tool) is set to UTF-8. You can check that in phpinfo() and correct the settings in php.ini or .htaccess, if needed.&lt;br /&gt;
[edit] HTML Tidy&lt;br /&gt;
&lt;br /&gt;
If you are having problems with html entities like &amp;amp;nbsp; shown as ? in the browser, add the -utf8 option to the HTML tidy_path variable in the install tool, e.g.&lt;br /&gt;
&lt;br /&gt;
 $TYPO3_CONF_VARS[&amp;#039;FE&amp;#039;][&amp;#039;tidy_path&amp;#039;] = &amp;#039;tidy -i --quiet true --tidy-mark true -wrap 0 -raw --output-xhtml true -utf8&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== External links ====&lt;br /&gt;
&lt;br /&gt;
    * http://dev.mysql.com/doc/refman/5.0/en/charset.html&lt;br /&gt;
    * http://en.opensuse.org/SDB%3AConverting_Files_or_File_Names_to_UTF-8_Encoding&lt;br /&gt;
    * How to change the encoding like iso-8859-1, iso-8859-15, utf-8 of files: http://linuxwiki.de/tcs (just in german in the moment)&lt;/div&gt;</summary>
		<author><name>94.216.227.24</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=TYPO3_auf_utf-8_umstellen&amp;diff=17547</id>
		<title>TYPO3 auf utf-8 umstellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=TYPO3_auf_utf-8_umstellen&amp;diff=17547"/>
		<updated>2010-11-29T10:59:50Z</updated>

		<summary type="html">&lt;p&gt;94.216.227.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Links ==&lt;br /&gt;
Artikel aus dem t3n Magazin&lt;br /&gt;
[[http://t3n.de/magazin/mysql-typo3-utf-8-umstellen-tipps-wechsel-latin1-utf-8-220945/]]&lt;br /&gt;
&lt;br /&gt;
Guter Überblick im TYPO3 Wiki&lt;br /&gt;
[[http://wiki.typo3.org/index.php/UTF-8_support]] Der hier vorliegende Text ist eine Übersetzung des dortigen Textes.&lt;br /&gt;
&lt;br /&gt;
== Überblick / Overview ==&lt;br /&gt;
Verarbeitungskette prüfen vhost.conf - php.ini - my.cnf&lt;br /&gt;
&lt;br /&gt;
Wichtige Einstellung die leicht übersehen wird:&lt;br /&gt;
&lt;br /&gt;
Install Tool: Unter „All Configuration“ muss nun „[forceCharset]“ auf „utf-8“ und „[setDBinit]“ den Eintrag „SET NAMES utf8;“ erhalten. Der zusätzliche Eintrag „SET CHARACTER_SET utf8;“, der dem Feld „[setDBinit]“ hinzugefügt werden kann, ist oft nicht notwendig.&lt;br /&gt;
&lt;br /&gt;
=== Verarbeitungskette ===&lt;br /&gt;
Zuerst mal testen ob in der Verarbeitungskette überall utf-8 für die Übertragung von Daten verwendet wird:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Apache: vhost.conf ====&lt;br /&gt;
&lt;br /&gt;
AddDefaultCharset UTF-8&lt;br /&gt;
&lt;br /&gt;
Dies ist für TYPO3 Versionen spätestens ab 4.3 nicht notwendig. Wenn man hier im Install Tool &amp;#039;&amp;#039;[BE][forceCharset]&amp;#039;&amp;#039; gesetzt hat&lt;br /&gt;
&lt;br /&gt;
Kann einfach getestet werden indem man sich die Header Daten einer Seite mit Firebug oder LiveHTTPTracker anschaut. Darin sollte eine Zeile in dieser Art enthalten sein:&lt;br /&gt;
&lt;br /&gt;
 Content-Type: text/html; charset=utf-8&lt;br /&gt;
&lt;br /&gt;
==== PHP: php.ini ====&lt;br /&gt;
 default_charset = &amp;quot;utf-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Mit dieser Einstellung sollten auch standalone Skripte mit dem richtigen Zeichensatz arbeiten. Man kann in den Skripten aber auch &lt;br /&gt;
&lt;br /&gt;
Außerdem sollte mit der Erweiterung mbstring oder iconf gearbeitet werden. Deren Performance ist wesentlich besser als die Umwandlung über den PHP-Code von TYPO3 (s.u.)&lt;br /&gt;
&lt;br /&gt;
==== MySQL: my.cnf ====&lt;br /&gt;
Die folgende Einstellung setzt alle System Variablen für Zeichensätze und Kollationen für den MySQL SERVER. Dies betrifft also auch existierende Datenbanken. Deshalb sollte diese Einstellung nur gesetzt werden wenn ausschließlich mit utf-8 Datenbanken gearbeitet wird.&lt;br /&gt;
&lt;br /&gt;
Man benötigt die Einstellung nicht wenn im Install Tool &amp;#039;&amp;#039;[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;]&amp;#039;&amp;#039;  gesetzt ist.&lt;br /&gt;
&lt;br /&gt;
=== TYPO3 Einstellungen ===&lt;br /&gt;
&lt;br /&gt;
==== localconf.php ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// For backend charset&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
// For GIFBUILDER support&lt;br /&gt;
// Set it to &amp;#039;iconv&amp;#039; or &amp;#039;mbstring&amp;#039;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;t3lib_cs_convMethod&amp;#039;] = &amp;#039;mbstring&amp;#039;;&lt;br /&gt;
// For &amp;#039;iconv&amp;#039; support you need at least PHP 5!&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;t3lib_cs_utils&amp;#039;] = &amp;#039;mbstring&amp;#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweise:&lt;br /&gt;
* Wenn die Datenbank auf  UTF-8 gesetzt ist, sollte man &amp;#039;&amp;#039;&amp;#039;nicht die Einstellung $TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;multiplyDBfieldSize&amp;#039;] setzen&amp;#039;&amp;#039;&amp;#039;. Diese wird nur benötigt, wenn die Datenbank mit latin 1 arbeitet aber der Inhalt  utf-8 ist. Außerdem führt die Einstellung des öfteren zu Problemen.&lt;br /&gt;
*  $TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;; Setzt folgende 3 Einstellungen:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 SET character_set_client = utf8; &lt;br /&gt;
 SET character_set_results = utf8; &lt;br /&gt;
 SET character_set_connection = utf8; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Wenn &amp;#039;&amp;#039;&amp;#039;in phpMyAdmin Sonderzeichen als 2 seltsame Zeichen&amp;#039;&amp;#039;&amp;#039; angezeigt werden, reicht diese Einstellung nicht. Zuerst müssen die Inhaltstabellen konvertiert werden (oder löschen, umstellen, neu eingeben.&lt;br /&gt;
&lt;br /&gt;
* In &amp;#039;&amp;#039;&amp;#039;manchen Konfigurationen&amp;#039;&amp;#039;&amp;#039; muß man auch noch eine &amp;#039;&amp;#039;&amp;#039;Einstellung für die Sessions&amp;#039;&amp;#039;&amp;#039; machen:&lt;br /&gt;
&lt;br /&gt;
 SET NAMES utf8;&lt;br /&gt;
 SET SESSION character_set_server=utf8;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Benutze niemals SET CHARACTER SET utf8;&amp;#039;&amp;#039;&amp;#039; Dies kann große Probleme im TYPO3 Umfeld erzeugen. Mit der Einstellung SET NAMES hat sich das ohnehin erledigt, weil hier eigentlich die wichtigen Einstellungen gemacht werden&lt;br /&gt;
&lt;br /&gt;
* Wenn [BE][forceCharset] auf utf-8 gesetzt ist (siehe oben), dann wird auch &amp;#039;&amp;#039;config.renderCharset&amp;#039;&amp;#039; und &amp;#039;&amp;#039;config.metaCharset&amp;#039;&amp;#039; per default mit utf-8 arbeiten. Deshalb müssen hier keine Einstellungen mehr gemacht werden.&lt;br /&gt;
&lt;br /&gt;
=== Extensions ===&lt;br /&gt;
&lt;br /&gt;
==== RealURL ====&lt;br /&gt;
&lt;br /&gt;
One problem is that RealURL might not be able to understand a page title if it is in unusual (i.e. not Roman) characters. For example, with a page title in Japanese, I found that the title was not interpreted and the page was rendered as jp.html. Using the Navigation title solves this problem (to follow on the example, setting &amp;quot;home&amp;quot; as the Navigation title, my page was then rendered as jp/home.html).&lt;br /&gt;
&lt;br /&gt;
==== TemplaVoila ====&lt;br /&gt;
&lt;br /&gt;
Templates müssen im UTF-8 Format gespeichert werden. Möglicherweise muß neu gemappt werden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Weitere Hinweise ===&lt;br /&gt;
&lt;br /&gt;
==== Extensions sollten nicht strlen() benutzen====&lt;br /&gt;
Stattdessen sollte die Funktion t3lib_cs benutzt werden.&lt;br /&gt;
&lt;br /&gt;
strlen() doesn&amp;#039;t care for UTF-8. UTF-8 uses 1 to 3 Bytes for one char, so using strlen() will likely lead to wrong results. Extensions should instead use the functions provided in t3lib_cs.&lt;br /&gt;
&lt;br /&gt;
==== Sortierung ====&lt;br /&gt;
It is highly recommended (although not strictly necessary) to use UTF-8 in the database. Otherwise database sorting functions will not work correctly.&lt;br /&gt;
[edit] Problem with indeces&lt;br /&gt;
&lt;br /&gt;
==== Fehlermeldung Specified key was too long bei indizes====&lt;br /&gt;
&lt;br /&gt;
SQL=Specified key was too long; max key length is 1000 bytes:&lt;br /&gt;
&lt;br /&gt;
This particular problem might occur when you are using UTF-8 encoding. UTF-8 uses up to 3 bytes per character, and the maximum index length is 1000 bytes, so the effective maximum index is 1000/3 = 333 characters. Some tables are longer than this, hence the error (many other packages are being bitten by this issue too).&lt;br /&gt;
&lt;br /&gt;
To solve this, simply remove the index from that field and reload.&lt;br /&gt;
&lt;br /&gt;
Note: Using indeces that big anyway is not recommended and shows bad DB design.&lt;br /&gt;
[edit] Convert an already existing database to UTF-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Konvertierung einer bestehenden Datenbank ===&lt;br /&gt;
Some links to the conversion topic:&lt;br /&gt;
&lt;br /&gt;
    * http://dev.mysql.com/doc/refman/4.1/en/charset-convert.html (MySQL based conversion)&lt;br /&gt;
    * http://www.typo3-media.com/blog/article/utf8-and-typo3-updated.html&lt;br /&gt;
    * http://m.tacker.org/blog/64.script-to-convert-wordpress-content-encoding.html (useful PHP script to convert charsets) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[edit] Possibility 1&lt;br /&gt;
Note 	This has been tested and works!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Jigal van Hemert wrote a script, which can convert your database to utf-8. He offers it for download here: [[http://www.xs4all.nl/~dcbjht/typo3/db_utf8_fix.zip]] . This script converts all columns, tables and finally the setting for the whole database to utf-8.&lt;br /&gt;
&lt;br /&gt;
Jigal writes:&lt;br /&gt;
&lt;br /&gt;
Read the following very carefully, because you have to make a few adjustments depending on the situation!&lt;br /&gt;
&lt;br /&gt;
    * Make a backup of your database before you do such a conversion. &lt;br /&gt;
&lt;br /&gt;
    * The script was meant for the situation where utf-8 encoded data was stored in latin-1 (or other charsets) tables. This was very common in 2008. You can recognize this by looking in PHPmyAdmin and you find that characters with accents (diacriticals) are shown as weird double-character combinations:&lt;br /&gt;
      Instead of &amp;quot;Ali Gökgöz and Gültekin Tarcan&amp;quot; it shows as &amp;quot;Ali GÃ¶kgÃ¶z and GÃ¼ltekin Tarcan&amp;quot;.&lt;br /&gt;
      If this is *not* the case in your situation, turn lines 97 - 107 into comments by putting // in front of them. &lt;br /&gt;
&lt;br /&gt;
    * In line 19 of the script it says define(&amp;quot;SIMULATE&amp;quot;, TRUE); This makes sure that the tables are not really converted, it&amp;#039;s just a practice run; a simulation. After you executed the script at least once and there are no errors you can turn this into define(&amp;quot;SIMULATE&amp;quot;, FALSE); to do the conversion for real. &lt;br /&gt;
&lt;br /&gt;
    * Put the script in a subdirectory of the TYPO3 installation, for example inside &amp;#039;fileadmin&amp;#039;. It is designed to run from a subdirectory so it can pick up the database connection data from localconf.php. &lt;br /&gt;
&lt;br /&gt;
    * Run the script from your browser: http://domain.ext/fileadmin/db_utf8_fix.php It shows each table it found and after the name of a table a dot for each column it has converted. &lt;br /&gt;
&lt;br /&gt;
    * It really doesn&amp;#039;t matter if there are columns/tables already in utf-8 format. &lt;br /&gt;
&lt;br /&gt;
 Settings in TYPO3 &lt;br /&gt;
&lt;br /&gt;
Furthermore, if you use the following settings in the Install Tool you should have a UTF-8 installation:&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
 Possibility 2&lt;br /&gt;
&lt;br /&gt;
Dump your database, modifiy the dumped file and import it again.&lt;br /&gt;
Note 	If you do it that way, setting [&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] might cause broken special chars inside TYPO3. See below for more information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Requirements:&lt;br /&gt;
&lt;br /&gt;
    * Shell access to your unix based server&lt;br /&gt;
    * &amp;quot;Sed&amp;quot; package installed on the server &lt;br /&gt;
&lt;br /&gt;
For this example we assume:&lt;br /&gt;
&lt;br /&gt;
    * hostname: domain.com&lt;br /&gt;
    * database: typo3 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example is for linux users. If your PC uses Windows, you can do the same using putty.exe. Enter the hostname in the field &amp;quot;Host Name (or IP adress)&amp;quot; and click on &amp;quot;Open&amp;quot;. Then enter your ssh username, press enter and enter the password (which will not be displayed) and press enter. Then you are connected to the server.&lt;br /&gt;
&lt;br /&gt;
Linux users connect to the server via ssh typing&lt;br /&gt;
&lt;br /&gt;
ssh -l (user) domain.com&lt;br /&gt;
&lt;br /&gt;
Create a backup of the database (for security reasons if things go wrong...)&lt;br /&gt;
&lt;br /&gt;
mysqldump -u (user) -p(pass) --max_allowed_packet=10000000 typo3 &amp;gt; typo3_backup.sql&lt;br /&gt;
&lt;br /&gt;
Dump database (without table typo3.sys_refindex. This prevents the following error: SQL=Specified key was too long; max key length is 1000 bytes. You have to rebuild the reference index afterwards!)&lt;br /&gt;
&lt;br /&gt;
mysqldump -u (user) -p(pass) --max_allowed_packet=10000000 --ignore-table=typo3.sys_refindex  typo3  &amp;gt; typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Now modifiy the dump: Newer versions of MySQL (at least 5.0) also save the collation for each column seperately. You have to convert all of them:&lt;br /&gt;
&lt;br /&gt;
First convert all occurences of &amp;quot;DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci&amp;quot; (use the character set which you have written in your file) in typo3_utf8.sql to &amp;quot;DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
sed  -e &amp;#039;s/DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci/DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci/g&amp;#039; -i typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Then convert all occurences of &amp;quot;COLLATE latin1_german1_ci&amp;quot; (use the charset you have written in your file) to &amp;quot;COLLATE utf8_general_ci&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
sed  -e &amp;#039;s/COLLATE latin1_german1_ci/COLLATE utf8_general_ci/g&amp;#039; -i typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Import database&lt;br /&gt;
&lt;br /&gt;
mysql -u (user) -p(pass) --default-character-set=utf8  typo3 &amp;lt; typo3_utf8.sql&lt;br /&gt;
&lt;br /&gt;
Alter character set and collation for the whole database&lt;br /&gt;
&lt;br /&gt;
mysql -u (user) -p(pass) -e &amp;quot;ALTER DATABASE typo3 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[edit] Settings in TYPO3&lt;br /&gt;
&lt;br /&gt;
Furthermore, if you use the following settings in the Install Tool you should have a UTF-8 installation:&lt;br /&gt;
&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;SYS&amp;#039;][&amp;#039;setDBinit&amp;#039;] = &amp;#039;SET NAMES utf8;&amp;#039;;&lt;br /&gt;
$TYPO3_CONF_VARS[&amp;#039;BE&amp;#039;][&amp;#039;forceCharset&amp;#039;] = &amp;#039;utf-8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
[edit] Broken special chars?&lt;br /&gt;
&lt;br /&gt;
If the result of the above mentioned is that special chars are displayed incorrectly in TYPO3 (a small black box with a question mark in it instead of the special char), the following might help:&lt;br /&gt;
&lt;br /&gt;
Create a new database. Make sure that it uses utf8 as default charset and utf8_general_ci as collation:&lt;br /&gt;
&lt;br /&gt;
mysql -user (user) -password(password) -e &amp;quot;ALTER DATABASE (new-db) DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Then import the dump into that database without using sed to replace the occurences of latin1 (or what you have) with utf8.&lt;br /&gt;
&lt;br /&gt;
The result will be that the tables and columns in your database still use latin1 (or what you had before).&lt;br /&gt;
&lt;br /&gt;
This might be a problem, e.g. when you now add new tables to this database, they will use utf8 as charset, because the database is set to utf8. This will lead to a mix of both charsets in your DB.&lt;br /&gt;
[edit] Possibility 3&lt;br /&gt;
&lt;br /&gt;
This might be the way to go for german speaking users with a Unix server:&lt;br /&gt;
&lt;br /&gt;
A way similar to possibility 2 is recommended by t3n (german).&lt;br /&gt;
&lt;br /&gt;
Basically they make the dump and replace the charset and collation statements.&lt;br /&gt;
&lt;br /&gt;
Then they use iconv on the dumped file to convert the signs inside:&lt;br /&gt;
&lt;br /&gt;
iconv -f iso-8859-1 -t utf8 dump.sql &amp;gt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
After that they import the file using the switch --default-character-set=utf8:&lt;br /&gt;
&lt;br /&gt;
mysql -u USER -p PASSWORT -h HOST --default-character-set=utf8 DB &amp;lt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note 	If you did that and get umlauts displayed correctly, but ß and € displayed wrong inside TYPO3, you should use CP1252 in the iconv command as origin charset like that:&lt;br /&gt;
&lt;br /&gt;
iconv -f CP1252 -t utf8 dump.sql &amp;gt; dump-iconv.sql&lt;br /&gt;
&lt;br /&gt;
=== Filesystem ===&lt;br /&gt;
&lt;br /&gt;
When setting [BE][forceCharset] all files in the TYPO3 root folder and below are handled as UTF-8 files by TYPO3; so you should make sure that they really are. You should e.g. check your HTML-Templates and CSS files for special chars like umlauts. If they are displayed incorrectly, you should fix that by saving the file in UTF-8 format.&lt;br /&gt;
&lt;br /&gt;
When editing such files only use editors which can save files in UTF-8 format. That is any editor on Linux and e.g. Notepad++ if you use Windows.&lt;br /&gt;
&lt;br /&gt;
Attention: Do not save the files in UTF-8 format with Byte Order Mark (BOM). Saving them as UTF-8 with BOM can cause problems, e.g. thumbnails in the BE will no longer be shown. Save the files in ANSI format (as UTF-8 without BOM) instead.&lt;br /&gt;
[edit] t3lib_cs&lt;br /&gt;
&lt;br /&gt;
Developers: Use these functions e.g. to get the length of a string. strlen doesn&amp;#039;t get the correct string-length, because the chars of UTF-8 can have 1...3 Bytes.&lt;br /&gt;
&lt;br /&gt;
In PHP 5.3 PECL/intl will be available, so maybe the TYPO3 Core-Developers switch to this.&lt;br /&gt;
[edit] Use unicode fonts&lt;br /&gt;
&lt;br /&gt;
If you use Gifbuilder to create some lines of text (e.g. in a menu) make sure that the font file you use is unicode. More info here.&lt;br /&gt;
&lt;br /&gt;
If there still are problems with broken special chars in these images, you should make sure that the configuration for mb_string or iconv (the one which you set in the Install Tool) is set to UTF-8. You can check that in phpinfo() and correct the settings in php.ini or .htaccess, if needed.&lt;br /&gt;
[edit] HTML Tidy&lt;br /&gt;
&lt;br /&gt;
If you are having problems with html entities like &amp;amp;nbsp; shown as ? in the browser, add the -utf8 option to the HTML tidy_path variable in the install tool, e.g.&lt;br /&gt;
&lt;br /&gt;
 $TYPO3_CONF_VARS[&amp;#039;FE&amp;#039;][&amp;#039;tidy_path&amp;#039;] = &amp;#039;tidy -i --quiet true --tidy-mark true -wrap 0 -raw --output-xhtml true -utf8&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== External links ====&lt;br /&gt;
&lt;br /&gt;
    * http://dev.mysql.com/doc/refman/5.0/en/charset.html&lt;br /&gt;
    * http://en.opensuse.org/SDB%3AConverting_Files_or_File_Names_to_UTF-8_Encoding&lt;br /&gt;
    * How to change the encoding like iso-8859-1, iso-8859-15, utf-8 of files: http://linuxwiki.de/tcs (just in german in the moment)&lt;/div&gt;</summary>
		<author><name>94.216.227.24</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=Flash&amp;diff=17557</id>
		<title>Flash</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Flash&amp;diff=17557"/>
		<updated>2010-11-29T10:58:09Z</updated>

		<summary type="html">&lt;p&gt;94.216.227.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Tipps und Tricks für Flash und ActionScript ==&lt;br /&gt;
[[Flash - Standalone Applications]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Flash Kommunikation zwischen Filmen, Projektoren, Browsern und Servern ===&lt;br /&gt;
Flash kann auf unterschiedliche Weise mit seiner Umwelt kommunizieren. Kommunikation mit Servern kann z.B. beim Speichern von Highscores nützlich sein. &lt;br /&gt;
&lt;br /&gt;
[[Kommunikation von Flash und Webserver]] (z.B. über PHP)&lt;br /&gt;
&lt;br /&gt;
[[Kommunikation von zwei Flash Instanzen]]&lt;br /&gt;
&lt;br /&gt;
=== 3D-Pyramide mit Flash (aus Flashforum)===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
lois&lt;br /&gt;
27-01-2003, 23:59&lt;br /&gt;
Geschrieben von Hamster2k&lt;br /&gt;
3d Engine programmieren ;) anders gehts nicht.&lt;br /&gt;
IS aber n Haufen Arbeit.&lt;br /&gt;
MfG&lt;br /&gt;
&lt;br /&gt;
ach wenn man es einmal gemacht hat, dann ist es wirklich nicht mehr schwierig:&lt;br /&gt;
&lt;br /&gt;
movieclip.prototype.d3tod2 = function(x3d, y3d, z3d, lookatz) {&lt;br /&gt;
z2d = Math.sqrt(x3d*x3d+y3d*y3d+z3d*z3d);&lt;br /&gt;
//z3d; Math.sqrt(x3d*x3d+y3d*y3d+z3d*z3d);&lt;br /&gt;
scale2d = 100*lookatz/z2d;&lt;br /&gt;
if (z2d&amp;gt;0) {&lt;br /&gt;
x2d = x3d/z2d*lookatz;&lt;br /&gt;
y2d = y3d/z2d*lookatz;&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
x=new Array(-10,10,10,-10,0);&lt;br /&gt;
y=new Array(10,10,-10,-10,0);&lt;br /&gt;
z=new Array(0,0,0,0,10);&lt;br /&gt;
//farben&lt;br /&gt;
farbe=new Array(&amp;quot;0xff0000&amp;quot;,&amp;quot;0x00ff00&amp;quot;,&amp;quot;0x0000ff&amp;quot;,&amp;quot;0xFFFF00&amp;quot;);&lt;br /&gt;
//diese Punktkombinationen ergeben eine Fläche&lt;br /&gt;
shape=new Array(&amp;quot;0_1_4&amp;quot;,&amp;quot;1_2_4&amp;quot;,&amp;quot;2_3_4&amp;quot;,&amp;quot;3_0_4&amp;quot;);&lt;br /&gt;
//Kantenlänge (100px) liegt in der variable a&lt;br /&gt;
a=100;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
punkte = z.length-1;&lt;br /&gt;
anzahl = shape.length-1;&lt;br /&gt;
//Erstellung der movieclips...Schaltfächen&lt;br /&gt;
for (i=0; i&amp;lt;=anzahl; i++) {&lt;br /&gt;
shape[i] = shape[i].split(&amp;quot;_&amp;quot;);&lt;br /&gt;
_root.createEmptyMovieClip(&amp;quot;flaeche&amp;quot; add i, i);&lt;br /&gt;
//Definition als Schaltfäche&lt;br /&gt;
_root[&amp;quot;flaeche&amp;quot;add i].hitArea();&lt;br /&gt;
//Vorbereitung für Testaktion; kann später gelöscht werden&lt;br /&gt;
_root[&amp;quot;flaeche&amp;quot;add i].i=i;&lt;br /&gt;
//Schaltflächenaktion&lt;br /&gt;
_root[&amp;quot;flaeche&amp;quot;add i].onRelease = function() {&lt;br /&gt;
//hier die Aktionen entsprechend einbinden!!!&lt;br /&gt;
trace(this.i);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
winkelx = 0;&lt;br /&gt;
winkely = 0;&lt;br /&gt;
_root.onEnterFrame = function() {&lt;br /&gt;
winkelx = (_root._ymouse-200)/10;&lt;br /&gt;
winkely = (_root._xmouse-275)/10;&lt;br /&gt;
for (i=0; i&amp;lt;=punkte; i++) {&lt;br /&gt;
// x-rotation&lt;br /&gt;
radius = Math.sqrt(y[i]*y[i]+z[i]*z[i]);&lt;br /&gt;
rot = Math.atan(y[i]/z[i]);&lt;br /&gt;
if (y[i] == 0 and z[i] == 0) {&lt;br /&gt;
rot = 0;&lt;br /&gt;
}&lt;br /&gt;
if (z[i]&amp;lt;0) {&lt;br /&gt;
rot = rot+Math.PI;&lt;br /&gt;
}&lt;br /&gt;
rot = rot+winkelx/360*2*Math.PI;&lt;br /&gt;
yx = radius*Math.sin(rot);&lt;br /&gt;
zx = radius*Math.cos(rot);&lt;br /&gt;
// y-rotation&lt;br /&gt;
radius = Math.sqrt(x[i]*x[i]+zx*zx);&lt;br /&gt;
alpha = Math.atan(x[i]/zx);&lt;br /&gt;
if (x[i] == 0 and zx == 0) {&lt;br /&gt;
alpha = 0;&lt;br /&gt;
}&lt;br /&gt;
if (zx&amp;lt;0) {&lt;br /&gt;
alpha = alpha+Math.PI;&lt;br /&gt;
}&lt;br /&gt;
alpha = alpha+winkely/360*2*Math.PI;&lt;br /&gt;
x[i] = radius*Math.sin(alpha);&lt;br /&gt;
z[i] = radius*Math.cos(alpha);&lt;br /&gt;
y[i] = yx;&lt;br /&gt;
}&lt;br /&gt;
for (i=0; i&amp;lt;=anzahl; i++) {&lt;br /&gt;
depths = 0;&lt;br /&gt;
for (j=0; j&amp;lt;shape[i].length; j++) {&lt;br /&gt;
num = shape[i][j];&lt;br /&gt;
d3tod2(x[num], y[num], Number(z[num])+4, 100);&lt;br /&gt;
set(&amp;quot;px&amp;quot; add j, x2d+275);&lt;br /&gt;
set(&amp;quot;py&amp;quot; add j, y2d+200);&lt;br /&gt;
depths = depths+10000-z2d;&lt;br /&gt;
}&lt;br /&gt;
with (_root[&amp;quot;flaeche&amp;quot; add i]) {&lt;br /&gt;
clear();&lt;br /&gt;
lineStyle(1, 0x000000, 100);&lt;br /&gt;
beginFill(farbe[i]);&lt;br /&gt;
moveTo(px0, py0);&lt;br /&gt;
&lt;br /&gt;
for (j=1; j&amp;lt;shape[i].length; j++) {&lt;br /&gt;
lineTo(eval(&amp;quot;px&amp;quot; add j), eval(&amp;quot;py&amp;quot; add j));&lt;br /&gt;
}&lt;br /&gt;
depths = depths/shape[i].length;&lt;br /&gt;
endFill();&lt;br /&gt;
&lt;br /&gt;
swapDepths(depths*1000+i);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Gruß&lt;br /&gt;
&lt;br /&gt;
Alois&lt;/div&gt;</summary>
		<author><name>94.216.227.24</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=Flash_-_Standalone_Applications&amp;diff=18590</id>
		<title>Flash - Standalone Applications</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Flash_-_Standalone_Applications&amp;diff=18590"/>
		<updated>2010-11-29T10:53:35Z</updated>

		<summary type="html">&lt;p&gt;94.216.227.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In den Flash Veröffentlichungseinstellungen kann man auch die Option Projector auswählen. Damit läßt sich ein voll lauffähiges Programm für Windows oder Mac erzeugen. Im Prinzip enthält die Anwendung einen Flash Player + die Flash Datei. &lt;br /&gt;
&lt;br /&gt;
Diese Art Anwendung ist zwar sehr praktisch um z.B. eine CD zu erzeugen die sich auch ohne Flash Player und Internet Browser abspielen läßt, hat allerdings auch ein paar Nachteile:&lt;br /&gt;
&lt;br /&gt;
- wenig zugriffsmöglichkeiten auf das umgebende Betriebssystem&lt;br /&gt;
- starkes Branding von Flash (Logo muß eingeblendet werden, Flash Icons als Anwendungsicon...)&lt;br /&gt;
- wenig Einfluss auf das Programmfenster (z.B. Kontextmenü etc.)&lt;br /&gt;
&lt;br /&gt;
Einige Einstellungsmöglichkeiten um das Programm bzw. den eingebetteten Player zu beeinflussen gibt es aber denoch. Um das Programm zu modifizieren gibt es die Möglichkeit ein Programm (paket) zu kaufen oder sich den Bordmitteln von Flash zu bedienen und mit einigen kleinen Tools nachzuhelfen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Automatik - die Programme ===&lt;br /&gt;
&lt;br /&gt;
Mit den sehr ausgereiften Programmen lassen sich sehr viele Parameter beeinflussen man kann sich zudem von den Lizenz-Branding-Vorschriften von Adobe (formerly Macromedia) zu lösen. Eine Anwendung ist in wenigen Minuten erstellt. Die Möglichkeiten gehen weit über das hinaus, was der Freizeit-Flasher alleine zustande bringt. Allerdings kosten die Programme auch einiges. Einen guten Eindruck machen vor allem Zinc von MDM und Flash Juggler von einer deutschen Firma. MDM kann sogar Programme für den Mac erzeugen und wirkt etwas aufgeräumter. Jugglor hat auf den ersten Blick mehr Möglichkeiten, was aber auch täuschen kann. &lt;br /&gt;
&lt;br /&gt;
=== Schaltgetriebe - manuelle Einstellmöglichkeiten ===&lt;br /&gt;
Für die Kommunikation mit der Außenwelt ist bei Flash das Kommando fscommand() zuständig (anscheinend gibt es noch ein paar zusätzliche Tricks mit dem vorkompilierten Code der swf-Datei). Folgende Optionen stehen zur Verfügung.&lt;br /&gt;
&lt;br /&gt;
Befehl Parameter (args) Zweck &lt;br /&gt;
quit Keine Schließt den Projektor. &lt;br /&gt;
fullscreen true oder false Bei Angabe von true wird Flash Player in den Vollbildmodus gesetzt. Mit false wird der Player auf die normale Menüansicht zurückgesetzt. &lt;br /&gt;
allowscale true oder false Bei Angabe von false wird der Player angewiesen, die SWF-Datei immer in ihrer ursprünglichen Größe darzustellen und nicht zu skalieren. Bei Angabe von true wird die SWF-Datei exakt in der vollen Größe des Players dargestellt. &lt;br /&gt;
showmenu true oder false Bei Angabe von true werden sämtliche Kontextmenüelemente aktiviert. Bei Angabe von false werden alle Elemente des Kontextmenüs mit Ausnahme von &amp;quot;Einstellungen&amp;quot; und &amp;quot;Flash Player&amp;quot; ausgeblendet. &lt;br /&gt;
exec Pfad der Anwendung  Führt eine Anwendung im Projektor aus. &lt;br /&gt;
trapallkeys true oder false Bei Angabe von true werden alle Tastenereignisse, einschließlich Tastaturbefehle, an die Prozedur onClipEvent(keyDown/keyUp)in Flash Player gesendet.  &lt;br /&gt;
&lt;br /&gt;
Nicht alle in der Tabelle aufgeführten Befehle sind in allen Anwendungen&lt;br /&gt;
&lt;br /&gt;
=== Icons ===&lt;br /&gt;
&lt;br /&gt;
=== Branding ===&lt;br /&gt;
&lt;br /&gt;
=== Autorun CD ===&lt;br /&gt;
Automatisch startende CDs werden unter Windows als Autorun CDs bezeichnet und sind ein Kapitel für sich wert. Daher hier nur einige kurze Erläuterungen. Unter Mac beschränkt sich ein zuverlässiges Autostarten auf das öffnen eines CD Ordners. Automatisches Starten funktioniert hier im zusammenspiel mit dem Quick Time Player, allerdings nur wenn die entsprechende Option in dessen Einstellungen aktiviert sind. Aber auch unter Windows läßt sich die Autorun Funktion abschalten.&lt;/div&gt;</summary>
		<author><name>94.216.227.24</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=Projekt:_StaRT_-_Shopfinder&amp;diff=17552</id>
		<title>Projekt: StaRT - Shopfinder</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Projekt:_StaRT_-_Shopfinder&amp;diff=17552"/>
		<updated>2010-11-29T10:18:11Z</updated>

		<summary type="html">&lt;p&gt;94.216.227.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hinweise zum Projekt&lt;br /&gt;
Bei den Geschäften wird&lt;br /&gt;
S&amp;#039;&amp;#039;&amp;#039;ortiment&amp;#039;&amp;#039;&amp;#039; wird in das Feld &amp;#039;&amp;#039;&amp;#039;Produkte&amp;#039;&amp;#039;&amp;#039; gemappt, weil dieses Feld nicht durchsucht wird. &lt;br /&gt;
&lt;br /&gt;
Sortiment -&amp;gt; products&lt;br /&gt;
&lt;br /&gt;
Durchsucht wird dagegen das Feld &amp;#039;&amp;#039;&amp;#039;assortment&amp;#039;&amp;#039;&amp;#039;, dieses nutzen wir dann für die &amp;#039;&amp;#039;&amp;#039;Suchbegriffe&amp;#039;&amp;#039;&amp;#039;, zeigen es aber nicht in der Listenansicht an. Die &amp;#039;&amp;#039;&amp;#039;Suchbegriffe&amp;#039;&amp;#039;&amp;#039; kommen aus KWIS im Feld &amp;#039;&amp;#039;&amp;#039;Branche&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Branche -&amp;gt; tx_locatorparking_assortment&lt;br /&gt;
&lt;br /&gt;
Branche wird aber gebraucht für Die Hauptbranchen. D.h. zuerst Branche in assortement mappen und danach ein anderes (leeres Feld) auf &lt;br /&gt;
&lt;br /&gt;
Hauptbranche 1...n -&amp;gt; tx_locator&lt;/div&gt;</summary>
		<author><name>94.216.227.24</name></author>
	</entry>
</feed>