Re: [SMARTY] html_options problem

From: Date: Tue, 25 Mar 2003 17:28:14 +0000
Subject: Re: [SMARTY] html_options problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8901@lists.php.net to get a copy of this message
On Tue, Mar 25, 2003 at 04:26:07PM +0000, Raul Carvalho wrote: > Hello, > > I was in fact using the previous Smarty-2.4.2. Upgrading to 2.5.0-RC1 solved this problem. > > I am very gratefull to all helpers! :-) > > I would like one last advice from you (rather I don't think this is the apropriate place > to do so, but...): > > - as I mentioned before, I am retriving data from a mysql database. The data itself is recorded > on the database as the characters themsevles, not html encoded. If I use this method, some > characters are converted to two characters!!! > > Example: > mysql> insert into table_a (id, name) values ('10', 'é'); > > Now, after the Smarty template is processed, I get the folowing characters: > Ã(c) (that's a big A, tilded, together with the copyright symbol.) this may (but must not necessarily) be the result of the wrong character-encoding. if you have utf-8-strings in your database but the browser tries to render it iso-8859-1, that this can occur. you should try to always have a consistent encoding. ideally you should be able to tell at each line of you source-code, what kind of strings are used there, and how they are escaped and encoded. > So, what the browser processes is equivalent to é > > Any clues? > > Thank you, > Raul

« previous php.smarty.general (#8901) next »