Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675
UTF8 – Mein Wiki

UTF8

Aus Mein Wiki

Wechseln zu: Navigation, Suche
(per enca)
(korrekte Codierung nutzen)
 
Zeile 35: Zeile 35:
== Zeichenkodierung feststellen ==
== Zeichenkodierung feststellen ==
 +
=== Windows ===
 +
* Netbeans erkennt wenn die Datei NICHT der Projektcodierung entspricht, kann aber nicht konvertieren.
 +
* PSPad erkennt nicht alles, Konvertierung klappt aber trotzdem meistens!
 +
* Viewer des TotalCommanders (F3) - nicht probiert.
 +
* BabelPad
 +
** http://www.babelstone.co.uk/Software/BabelPad.html
 +
** Scheint die Premiumlösung zu sein, zeigt die Codierung direkt im Titel und kann auch konvertieren.
 +
=== auf Linux-System ===
=== auf Linux-System ===
==== utrac ====
==== utrac ====
Zeile 44: Zeile 52:
  aptitude install enca
  aptitude install enca
  enca -L none /path/to/example-file.txt
  enca -L none /path/to/example-file.txt
 +
 +
$ sudo apt-get install enca
 +
$ cd /usr/ports/converters/enca;pcfreak# make install clean
 +
==== file <dateiname> ====
 +
funktionniert leider nicht immer
 +
 +
= korrekte Codierung nutzen =
 +
Damit UTF-8 funktioniert müssen folgende Bedingungen erfüllt sein:
 +
- Der Seitenheader muss korrekt sein:
 +
 +
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
 +
- Die Seitensprache muss korrekt sein:
 +
 +
<html lang="de-DE"> 
 +
- Webserver und PHP müssen ebenfalls auf UTF8 eingestellt sein.
 +
 +
Wenn diese Bedingungen erfüllt sind, klappts auch mit den Sonderzeichen ohne Entities...
 +
[[Kategorie:Problem]]
[[Kategorie:Problem]]
[[Kategorie:Softwareentwicklung]]
[[Kategorie:Softwareentwicklung]]

Aktuelle Version vom 08:13, 5. Dez. 2011

Persönliche Werkzeuge