Ruprit
Ruprit

Reputation: 743

Smarty to_charset Modifier

How to use to_charset Smarty modifier?

What is the correct syntax for the same?

I am doing something like this, but doesn't seems to be working:

<%$mystring|to_charset:"UTF-8"%>

Upvotes: 1

Views: 1775

Answers (1)

FFirmenich
FFirmenich

Reputation: 5921

That's how it worked for me:

{$cmnt_rsrc|to_charset:"ISO-8859-1"}

Upvotes: 1

Related Questions