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

Problem with include and strange characters

 
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 -> Smarty Development
View previous topic :: View next topic  
Author Message
gatopanah
Smarty n00b


Joined: 21 Apr 2010
Posts: 3

PostPosted: Thu Apr 22, 2010 5:11 pm    Post subject: Problem with include and strange characters Reply with quote

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. Rolling Eyes
Back to top
View user's profile Send private message
Andreyco
Smarty n00b


Joined: 28 Jun 2010
Posts: 3

PostPosted: Sun Jul 04, 2010 10:43 am    Post subject: Reply with quote

Is your file UTF-8 endoded? Save it that way, this should help you
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 -> Smarty Development 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