Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Problem with include and strange characters

 
Post new topic   Reply to topic    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:   
Post new topic   Reply to topic    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