|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
gatopanah Smarty n00b
Joined: 21 Apr 2010 Posts: 3
|
Posted: Thu Apr 22, 2010 5:11 pm Post subject: Problem with include and strange characters |
|
|
Hello everyone, sorry for my English .. too bad. I created my template and all that show in the ($ content) done correctly:
motor.php
------------
[code] $ smarty-> assign ('content', $ smarty-> fetch ($ tpl "));
$ Smarty-> display ("$ tpl_tipo "); [/ code]
template
---------
[code]{$ content}
[/code]
My problem occurs when using blocks, I do it includes like this:
[code]<div id="bloqueizq">
{Include file = "/ lateral.php"}
</ Div> <! - Left Block ->
{$ Content}[/code]
But it shows strange characters like "Â º ltenos Cons!"
Thank you. |
|
Back to top |
|
Andreyco Smarty n00b
Joined: 28 Jun 2010 Posts: 3
|
Posted: Sun Jul 04, 2010 10:43 am Post subject: |
|
|
Is your file UTF-8 endoded? Save it that way, this should help you |
|
Back to top |
|
|
|
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
|