Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

gettext plugin und Umlaute

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
kip
Smarty n00b


Joined: 23 May 2005
Posts: 4

PostPosted: Mon May 23, 2005 4:46 pm    Post subject: gettext plugin und Umlaute Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon May 23, 2005 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
kip
Smarty n00b


Joined: 23 May 2005
Posts: 4

PostPosted: Mon May 23, 2005 7:50 pm    Post subject: Reply with quote

wow, weiß garnicht was ich sagen soll ... das Problem war schnell und einfach gelöst Smile 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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: 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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP