Handlebars
Handlebars copied to clipboard
Added support for spanish special chars
Hi,
I was testing Handlebars PHP with this template:
But, the template wasn't working with spanish accents: (chars like í ñ) and the Template was showing a blank text.
So, the present solution adds support applying the utf8_encode and saving the text of blank issue:
Regards,
That function does not do what you think it does.
Sorry, what does it do?
It converts from one specific encoding into utf-8. So while it might work for your data source, it will break things for anyone who isn't using that encoding.
For example, if someone already has utf-8 strings, it does this:
Yes, you right, I think to know how to solvet it.
I tried with ENT_IGNORED but disappears the chars, and tried to with ENT_SUBSTITUTE but converts my chars in weird chars, i searched in Google and the answers that i found, didn't seem me much. Do you have some idea for improving this solution?