Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Why SMARTY_RESOURCE_CHAR_SET is UTF-8 ?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
Troto
Smarty Rookie


Joined: 21 Mar 2007
Posts: 9

PostPosted: Mon Nov 16, 2009 1:43 pm    Post subject: Why SMARTY_RESOURCE_CHAR_SET is UTF-8 ? Reply with quote

Why is SMARTY_RESOURCE_CHAR_SET UTF-8 ?

I just want to know why is this.

I've spend half a day trying to figure it out why a config var was not working as expected. it turns out that i was using the escape modifier, and by default Smarty is using SMARTY_RESOURCE_CHAR_SET as the char set that is set to UTF-8.
In smarty2 the escape modifier was using ISO-8859-1.

Of course i can pass as a parameter the char set or even redefine SMARTY_RESOURCE_CHAR_SET, but could this be made as default ?
Back to top
View user's profile Send private message
caoimhin
Smarty Rookie


Joined: 08 Nov 2009
Posts: 24
Location: Lebbeke, Belgium

PostPosted: Mon Nov 16, 2009 1:54 pm    Post subject: Re: Why SMARTY_RESOURCE_CHAR_SET is UTF-8 ? Reply with quote

Why should ISO-8859-1 be the default?
Back to top
View user's profile Send private message
imp4ct
Smarty n00b


Joined: 14 Nov 2009
Posts: 3

PostPosted: Mon Nov 16, 2009 3:10 pm    Post subject: Reply with quote

@Troto

Really, UTF-8 is a webdev standard. Seems pritty normal to me Smarty3 has switched to it.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Nov 16, 2009 8:08 pm    Post subject: Reply with quote

UTF-8 is the default now, we will make a note of this in the upgrade docs.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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