Added support for spanish special chars#2
Open
infinito84 wants to merge 1 commit intomardix:masterfrom
Open
Conversation
|
That function does not do what you think it does. |
Author
|
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. |
Author
|
Yes, you right, I think to know how to solvet it. |
Author
|
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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,