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

german entities

 
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 -> General
View previous topic :: View next topic  
Author Message
PSiegmund
Smarty Rookie


Joined: 04 May 2003
Posts: 6
Location: Berlin, Germany

PostPosted: Thu May 08, 2003 11:35 am    Post subject: german entities Reply with quote

Hi!

Does anybody have a function oder plugins to translate variables into the entities? I had a site with a mySQL-db and the users can insert their inputs. But if I put it on the site and it's for example ÄÖÜ the Site can only be viewed on M$-IE. My phoenix browser has problems, so I want to convert all none english letter/signs to their htmlentities in the display function.
How can help me?

CU
PSiegmund
Back to top
View user's profile Send private message Visit poster's website
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Thu May 08, 2003 11:39 am    Post subject: Reply with quote

http://www.php.net/manual/en/function.htmlentities.php htmlentities can do that if you pass it a charset.
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
PSiegmund
Smarty Rookie


Joined: 04 May 2003
Posts: 6
Location: Berlin, Germany

PostPosted: Thu May 08, 2003 8:08 pm    Post subject: Found better on ;-) Reply with quote

Hi!

I read the documentfile and found an included modifier:
Code:
{$variable|escape:"htmlall"}

That is the modifier I was looking for.
Never the less, thanks to you AZTEK for your very fast hint.

CU
PSiegmund
Back to top
View user's profile Send private message Visit poster's website
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 -> General 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