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

escape_html: kein Variableninhalt bei Strings mit Umlauten

 
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
andaris
Smarty n00b


Joined: 10 Apr 2012
Posts: 2

PostPosted: Tue Apr 10, 2012 5:37 pm    Post subject: escape_html: kein Variableninhalt bei Strings mit Umlauten Reply with quote

Hallo Leute,

bei mir tritt unter Smarty 3.1.8 folgendes Problem auf:

wenn ich escape_html für meine Templates mittels
Code:
$smarty->escape_html = true;
aktiviert habe, werden Strings, die Umlaute enthalten, nicht an Smarty übergeben.
Die Inhalte kommen aus einer mySQL-Datenbank (latin1), das Smarty-Charset mittels
Code:
 define(SMARTY_RESOURCE_CHAR_SET, 'ISO-8859-1')
festlegen hat nichts gebracht.

Kennt jemand dieses Phänomen und kann mir helfen?

Danke
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue Apr 10, 2012 5:59 pm    Post subject: Reply with quote

Code:
define('SMARTY_RESOURCE_CHAR_SET', 'ISO-8859-1')


Muss vor dem Include von Smarty.class.php stehen. Hast Du das?
Und beachte die Quotes.
Back to top
View user's profile Send private message
andaris
Smarty n00b


Joined: 10 Apr 2012
Posts: 2

PostPosted: Wed Apr 11, 2012 8:01 am    Post subject: Reply with quote

Hallo U.Tews,

danke für deine rasche Antwort. Das hab ich gemacht, hat aber leider nichts geholfen. Inzwischen bin ich draufgekommen, dass es irgendwo beim Datenaustausch durch die zwei verschiedenen bei mir verwendeten Charsets (ISO, UTF-8 ) Probleme gibt, ich hab nun als "saubere Lösung" das ganze Projekt auf UTF-8 migriert, nun läufts ohne Mucken Very Happy

Danke
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