Jump to content

UTF8 without BOM and Variables in Greek


hellykun

Recommended Posts

Hello Everyone,

 

Any ideas on a better way to display custom Variables in Greek without the need of changing the tpl files to UTF8 without BOM format. It seems to me that this is not the most correct way to do it.

 

For example I have a variable

 

$testvar = 'Τεστ Κείμενο';

$this->context->smarty->assign('testvar',$testvar);

 

And then in the tpl file I input 

 

{$testvar}

 

and on the screen I see the problematic characters.

 

If I change the files to UTF8 Without BOM

 

all display correctly.

 

Is there another way to achieve this?

 

Thanks a lot in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...