|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
kip Smarty n00b
Joined: 23 May 2005 Posts: 4
|
Posted: Mon May 23, 2005 4:46 pm Post subject: gettext plugin und Umlaute |
|
|
Hallo,
ich benutze das gettext()-Plugin für Smarty um Mehrsprachigkeit in meinen Templates zu realisieren. Das Problem ist, dass ich innerhalb der {t}{/t}-Tags keine deutschen Umlaute verwenden kann. Sie werden im Browser grundsätzlich als "Rechtecke" dargestellt.
Kann mir da jemand weiterhelfen? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon May 23, 2005 4:55 pm Post subject: |
|
|
dann stimmt dein character encoding nicht.
es gibt verschiedene arten deutsche umlaute in einem binärstrom (hier deinem html-document) zu repräsentieren.
via "header('content-type: text/html; charset=...');" in php oder entsprechendem meta-http-equiv-header in html kannst du dem browser sagen auf welche art codiert die umlaute auf der seite sind. diese angabe muss logischer zu dem encoding, das dein text-editor beim speichern der umlaute verwendet, korrespondieren.
google (oder yahooe) mal nach "character encoding", da wirst du ne menge infos zum thema finden. |
|
Back to top |
|
kip Smarty n00b
Joined: 23 May 2005 Posts: 4
|
Posted: Mon May 23, 2005 7:50 pm Post subject: |
|
|
wow, weiß garnicht was ich sagen soll ... das Problem war schnell und einfach gelöst Vielen Dank messju!
Viele Grüße,
kip
edit: Falls jemand vllt. mal das gleich Problem hat, ich habe einfach folgendes meta-Tag hinzugefügt:
Code: | <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-15" /> |
... und mich versichert das eclipse meine Dateien auch als ISO 8859-15 speichert, fertig |
|
Back to top |
|
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|