How to pass JSON UTF-8 from Smarty template to Open Flash Chart 2
Recently I ran into the problem with passing UTF-8 JSON from Smarty to Open Flash Chart 2. By default Smarty is striping slashes from all variables that it passes to the template, and JSON is converting every UTF-8 Character with ‘\u’ in the beginning. Of cause Smarty was returning only ‘u’.
To force Smarty to pass variables with slashes you can do next:
1 |
After that $chart will have correct JSON with correct UTF-8 Characters
please send exemple to me
Hi.
this is nice information for me! Thanks
So, will you show me more codes?
I tried but did’t to make any chart from smarty.
I want to know how to code php5 and smarty-template.
My sourse have a problem about never stopping “Loading data” :<
Guys sorry for long time no response
I will post brief example with Smarty+OFC2 as soon as possible!